[EAS] - Gradlew Error building on EAS
See original GitHub issueSummary
I’m switching my application to a monorepo. I have 3 packages: a shared package (app), a web package (NextJS) and mobile package (Expo managed workflow)
I’m having trouble to build the expo app on EAS. I have built on a single repo, it runs smooth! The problem is somehow related to the monorepo.
The problems goes on Gradlew build:
[stderr] FAILURE: Build failed with an exception.
[stderr] * Where:
[stderr] Build file '/root/workingdir/build/node_modules/react-native-gesture-handler/android/build.gradle' line: 26
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':react-native-gesture-handler'.
[stderr] > /root/workingdir/build/packages/mobile/android/../node_modules/react-native-reanimated/package.json (No such file or directory)
It happens right after displays the list of expo modules. Already tried remove and reinstall dependencies, tried different configs, but no success so far.
Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!
bare
What platform(s) does this occur on?
Android, iOS
SDK Version (managed workflow only)
44
Environment
Expo CLI 5.0.3 environment info:
System:
OS: Linux 5.10 Ubuntu 20.04 LTS (Focal Fossa)
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.1/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
npmPackages:
expo: ^44.0.6 => 44.0.6
react-native: 0.64.3 => 0.64.3
npmGlobalPackages:
eas-cli: 0.46.0
expo-cli: 5.0.3
Expo Workflow: managed
Reproducible demo
my dependencies:
{
"dependencies": {
"@babel/runtime": "^7.17.0",
"@expo/webpack-config": "~0.16.16",
"@gal-saloon/design-system": "^2.3.0",
"@hookstate/core": "^3.0.6",
"@react-native-async-storage/async-storage": "~1.15.0",
"@react-native-community/slider": "4.1.12",
"@react-native-masked-view/masked-view": "0.2.6",
"@react-navigation/material-top-tabs": "^6.0.6",
"@react-navigation/native": "^6.0.6",
"@react-navigation/stack": "^6.0.11",
"app": "*",
"axios": "^0.21.1",
"babel-loader": "^8.2.3",
"chroma-js": "^2.1.1",
"currency.js": "^2.0.3",
"dotenv": "^10.0.0",
"expo": "^44.0.6",
"expo-apple-authentication": "~4.1.0",
"expo-auth-session": "~3.5.0",
"expo-calendar": "~10.1.0",
"expo-dev-client": "^0.8.3",
"expo-device": "~4.1.0",
"expo-firebase-analytics": "~6.0.0",
"expo-font": "~10.0.4",
"expo-google-app-auth": "~8.3.0",
"expo-linear-gradient": "~11.0.0",
"expo-linking": "~3.0.0",
"expo-location": "~14.0.1",
"expo-permissions": "~13.1.0",
"expo-random": "~12.1.1",
"expo-splash-screen": "~0.14.1",
"expo-status-bar": "~1.2.0",
"expo-web-browser": "~10.1.0",
"express": "^4.17.2",
"firebase": "8.2.3",
"formik": "^2.2.6",
"jwt-decode": "^3.1.2",
"lodash.clonedeep": "^4.5.0",
"lodash.merge": "^4.6.2",
"lodash.uniqueid": "^4.0.1",
"modal-enhanced-react-native-web": "^0.2.0",
"moment": "^2.29.1",
"moti": "^0.17.1",
"qs": "^6.10.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-calendars": "^1.1260.0",
"react-native-gesture-handler": "~2.1.0",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-masked-text": "^1.13.0",
"react-native-media-query": "^1.0.10",
"react-native-modal": "^11.7.0",
"react-native-pager-view": "5.4.9",
"react-native-ratings": "^8.1.0",
"react-native-reanimated": "~2.3.1",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "~3.10.1",
"react-native-svg": "12.1.1",
"react-native-tab-view": "^3.1.1",
"react-native-web": "0.17.5",
"react-native-web-swiper": "^2.2.1",
"slugify": "^1.5.0",
"solito": "^0.0.8",
"styled-components": "^5.2.1",
"swr": "^0.4.2",
"webpack": "^5.68.0",
"yup": "^0.32.9"
},
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Android build failed using eas build. · Issue #1101 · expo/eas-cli
While building the project using the command eas build -p android , it fails with the above errors. However, the ios build is...
Read more >Expo EAS build fails on Android: run gradlew - Stack Overflow
EAS Build doesn't provide a direct way to change the Gradle version but it provides presets for building infrastructure images.
Read more >Problems building on eas-cli [resolved] - The Draftbit Community
It was mostly building fine on expo-cli but none of my builds on eas-cli have worked. The error for iOS:
Read more >eas build --profile development --platform android error
Here is the message from the Run Gradlew logs: Running 'gradlew :app:assembleDebug' in /home/expo/workingdir/build/android Downloading ...
Read more >gradle build failed with unknown error. see logs for the "run ...
When i run EAS build for android, I get the error Build failed: Gradle build failed with unknown error. See logs for the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
react-native-gesture-handler@2.1.2 was released with this change and is compatible with sdk 44. https://github.com/software-mansion/react-native-gesture-handler/releases/tag/2.1.2
it it’s safe to update from
2.1.0to2.2.0probablyexpo install react-native-gesture-handlershould default to installing2.2.0.