Error building Project APK (Fix gradlew - "ENOENT: no such file or directory, open '/home/expo/workingdir/build/android/gradlew' ")
- 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/33rdstar/projects/HouseFinder/builds/1f09b51e-938c-40de-926c-b8c64db47fc1
### Summary
I developed my application using Expo in VScode, i was building APK and abb files just fine until I suddenly started getting this error "ENOENT: no such file or directory, open '/home/expo/workingdir/build/android/gradlew' ". I use the command 'eas build --platform android --profile preview'. I have tried to remove the android folder and let it be generate during the building process but it does not work still. Help!
I have attached a screenshot of my project structure and the error.
.
### Managed or bare?
Bare
### Environment
expo-env-info 1.3.3 environment info:
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 22.15.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
SDKs:
Android SDK:
API Levels: 35
Build Tools: 35.0.1, 36.0.0
IDEs:
Android Studio: AI-243.24978.46.2431.13363775
npmPackages:
expo: ^51.0.39 => 51.0.39
react: 18.2.0 => 18.2.0
react-native: 0.74.5 => 0.74.5
Expo Workflow: bare
#####################################
expo doctor
12/14 checks passed. 2 checks failed. Possible issues detected:
Use the --verbose flag to see more details about passed checks.
✖ Check for app config fields that may not be synced in a non-CNG project
This project contains native project folders but also has native configuration properties in app.json, indicating it is configured to use Prebuild. When the android/ios folders are present, EAS Build will not sync the following properties: orientation, icon, userInterfaceStyle, androidStatusBar, splash, ios, android, plugins.
Advice:
Add '/android' and '/ios' to your .gitignore file if you intend to use CNG / Prebuild. Learn more: https://docs.expo.dev/workflow/prebuild/#usage-with-eas-build
✖ Check that packages match versions required by installed Expo SDK
The following packages should be updated for best compatibility with the installed expo version:
expo-system-ui@5.0.7 - expected version: ~3.0.7
Your project may not work correctly until you install the expected versions of the packages.
Found outdated dependencies
Advice:
Use 'npx expo install --check' to review and upgrade your dependencies.
2 checks failed, indicating possible issues with the project.
### Error output
_No response_
### Reproducible demo or steps to reproduce from a blank project
eas build --platform android --profile preview
Contributor guide
Assessment
This issue has not been assessed yet.