expo / expo/eas-cli

EAS build fails with gradlew Spawn ENONENT

Open
#2,958 20 comments 1 reaction 0 assignees View on GitHub
needs review
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

https://expo.dev/accounts/zegerdevos/projects/sugenda-front-end/builds/100f4b9f-6347-4362-a7d6-1b5411798538

### Summary

When I run
`eas build --platform android --profile development`
it fails when I locally have already an android folder in my repo. when I delete this and run it again, the build will succeed.

BTW - your link to workflows (managed/bare) in this form has a 404

### Managed or bare?

Managed

### Environment

```bash
expo-env-info 1.2.2 environment info:
System:
OS: macOS 14.7.4
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.6.2 - ~/.nvm/versions/node/v21.6.2/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v21.6.2/bin/npm
Watchman: 2025.03.10.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.15.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.0, iOS 18.0, macOS 15.0, tvOS 18.0, visionOS 2.0, watchOS 11.0
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2412.12266719
Xcode: 16.0/16A242d - /usr/bin/xcodebuild
npmPackages:
expo: ~52.0.39 => 52.0.39
expo-router: ~4.0.19 => 4.0.19
react: 18.3.1 => 18.3.1
react-dom: 18.3.1 => 18.3.1
react-native: 0.76.7 => 0.76.7
react-native-web: ~0.19.13 => 0.19.13
npmGlobalPackages:
eas-cli: 15.0.15
expo-cli: 6.3.10
Expo Workflow: managed
```

### Error output

See link to build.

```bash
Build failed

ENOENT: no such file or directory, open '/home/expo/workingdir/build/android/gradlew'
```

### Reproducible demo or steps to reproduce from a blank project

see description

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.