Android build hangs/stuck after upgrading to expo 51
Build/Submit details page URL
none
Summary
[RUN_GRADLEW] > Configure project :expo
[RUN_GRADLEW] Using expo modules
[RUN_GRADLEW] - expo-application (5.9.1)
[RUN_GRADLEW] - expo-asset (10.0.10)
[RUN_GRADLEW] - expo-av (14.0.7)
[RUN_GRADLEW] - expo-background-fetch (12.0.1)
[RUN_GRADLEW] - expo-constants (16.0.2)
[RUN_GRADLEW] - expo-file-system (17.0.1)
[RUN_GRADLEW] - expo-font (12.0.10)
[RUN_GRADLEW] - expo-haptics (13.0.1)
[RUN_GRADLEW] - expo-image-loader (4.7.0)
[RUN_GRADLEW] - expo-image-picker (15.0.7)
[RUN_GRADLEW] - expo-keep-awake (13.0.2)
[RUN_GRADLEW] - expo-location (17.0.1)
[RUN_GRADLEW] - expo-media-library (16.0.5)
[RUN_GRADLEW] - expo-modules-core (1.12.25)
[RUN_GRADLEW] - expo-notifications (0.28.18)
[RUN_GRADLEW] - expo-secure-store (13.0.2)
[RUN_GRADLEW] - expo-splash-screen (0.27.6)
[RUN_GRADLEW] - expo-system-ui (3.0.7)
[RUN_GRADLEW] - expo-task-manager (11.8.2)
[RUN_GRADLEW] - expo-web-browser (13.0.3)
[RUN_GRADLEW] - unimodules-app-loader (4.6.0)
[RUN_GRADLEW] > Configure project :react-native-reanimated
[RUN_GRADLEW] Android gradle plugin: 8.2.1
[RUN_GRADLEW] Gradle: 8.8
[RUN_GRADLEW] > Task :app:createBundleReleaseJsAndAssets
[RUN_GRADLEW] (node:87067) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
[RUN_GRADLEW] (Use node --trace-deprecation ... to show where the warning was created)
[RUN_GRADLEW] Starting Metro Bundler
[RUN_GRADLEW] warning: Bundler cache is empty, rebuilding (this may take a minute)
[RUN_GRADLEW] Android Bundled 22859ms node_modules/expo-router/entry.js (3801 modules)
[RUN_GRADLEW] Writing bundle output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
[RUN_GRADLEW] Writing sourcemap output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
[RUN_GRADLEW] Copying 57 asset files
[RUN_GRADLEW] Done writing bundle output
[RUN_GRADLEW] Done writing sourcemap output
Managed or bare?
managed
Environment
[RUN_GRADLEW] > Configure project :expo
[RUN_GRADLEW] Using expo modules
[RUN_GRADLEW] - expo-application (5.9.1)
[RUN_GRADLEW] - expo-asset (10.0.10)
[RUN_GRADLEW] - expo-av (14.0.7)
[RUN_GRADLEW] - expo-background-fetch (12.0.1)
[RUN_GRADLEW] - expo-constants (16.0.2)
[RUN_GRADLEW] - expo-file-system (17.0.1)
[RUN_GRADLEW] - expo-font (12.0.10)
[RUN_GRADLEW] - expo-haptics (13.0.1)
[RUN_GRADLEW] - expo-image-loader (4.7.0)
[RUN_GRADLEW] - expo-image-picker (15.0.7)
[RUN_GRADLEW] - expo-keep-awake (13.0.2)
[RUN_GRADLEW] - expo-location (17.0.1)
[RUN_GRADLEW] - expo-media-library (16.0.5)
[RUN_GRADLEW] - expo-modules-core (1.12.25)
[RUN_GRADLEW] - expo-notifications (0.28.18)
[RUN_GRADLEW] - expo-secure-store (13.0.2)
[RUN_GRADLEW] - expo-splash-screen (0.27.6)
[RUN_GRADLEW] - expo-system-ui (3.0.7)
[RUN_GRADLEW] - expo-task-manager (11.8.2)
[RUN_GRADLEW] - expo-web-browser (13.0.3)
[RUN_GRADLEW] - unimodules-app-loader (4.6.0)
[RUN_GRADLEW] > Configure project :react-native-reanimated
[RUN_GRADLEW] Android gradle plugin: 8.2.1
[RUN_GRADLEW] Gradle: 8.8
[RUN_GRADLEW] > Task :app:createBundleReleaseJsAndAssets
[RUN_GRADLEW] (node:87067) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
[RUN_GRADLEW] (Use `node --trace-deprecation ...` to show where the warning was created)
[RUN_GRADLEW] Starting Metro Bundler
[RUN_GRADLEW] warning: Bundler cache is empty, rebuilding (this may take a minute)
[RUN_GRADLEW] Android Bundled 22859ms node_modules/expo-router/entry.js (3801 modules)
[RUN_GRADLEW] Writing bundle output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
[RUN_GRADLEW] Writing sourcemap output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
[RUN_GRADLEW] Copying 57 asset files
[RUN_GRADLEW] Done writing bundle output
[RUN_GRADLEW] Done writing sourcemap output
Stuck at this point no further processing is happening.
Error output
[RUN_GRADLEW] > Configure project :expo
[RUN_GRADLEW] Using expo modules
[RUN_GRADLEW] - expo-application (5.9.1)
[RUN_GRADLEW] - expo-asset (10.0.10)
[RUN_GRADLEW] - expo-av (14.0.7)
[RUN_GRADLEW] - expo-background-fetch (12.0.1)
[RUN_GRADLEW] - expo-constants (16.0.2)
[RUN_GRADLEW] - expo-file-system (17.0.1)
[RUN_GRADLEW] - expo-font (12.0.10)
[RUN_GRADLEW] - expo-haptics (13.0.1)
[RUN_GRADLEW] - expo-image-loader (4.7.0)
[RUN_GRADLEW] - expo-image-picker (15.0.7)
[RUN_GRADLEW] - expo-keep-awake (13.0.2)
[RUN_GRADLEW] - expo-location (17.0.1)
[RUN_GRADLEW] - expo-media-library (16.0.5)
[RUN_GRADLEW] - expo-modules-core (1.12.25)
[RUN_GRADLEW] - expo-notifications (0.28.18)
[RUN_GRADLEW] - expo-secure-store (13.0.2)
[RUN_GRADLEW] - expo-splash-screen (0.27.6)
[RUN_GRADLEW] - expo-system-ui (3.0.7)
[RUN_GRADLEW] - expo-task-manager (11.8.2)
[RUN_GRADLEW] - expo-web-browser (13.0.3)
[RUN_GRADLEW] - unimodules-app-loader (4.6.0)
[RUN_GRADLEW] > Configure project :react-native-reanimated
[RUN_GRADLEW] Android gradle plugin: 8.2.1
[RUN_GRADLEW] Gradle: 8.8
[RUN_GRADLEW] > Task :app:createBundleReleaseJsAndAssets
[RUN_GRADLEW] (node:87067) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
[RUN_GRADLEW] (Use node --trace-deprecation ... to show where the warning was created)
[RUN_GRADLEW] Starting Metro Bundler
[RUN_GRADLEW] warning: Bundler cache is empty, rebuilding (this may take a minute)
[RUN_GRADLEW] Android Bundled 22859ms node_modules/expo-router/entry.js (3801 modules)
[RUN_GRADLEW] Writing bundle output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
[RUN_GRADLEW] Writing sourcemap output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
[RUN_GRADLEW] Copying 57 asset files
[RUN_GRADLEW] Done writing bundle output
[RUN_GRADLEW] Done writing sourcemap output
Reproducible demo or steps to reproduce from a blank project
[RUN_GRADLEW] > Configure project :expo
[RUN_GRADLEW] Using expo modules
[RUN_GRADLEW] - expo-application (5.9.1)
[RUN_GRADLEW] - expo-asset (10.0.10)
[RUN_GRADLEW] - expo-av (14.0.7)
[RUN_GRADLEW] - expo-background-fetch (12.0.1)
[RUN_GRADLEW] - expo-constants (16.0.2)
[RUN_GRADLEW] - expo-file-system (17.0.1)
[RUN_GRADLEW] - expo-font (12.0.10)
[RUN_GRADLEW] - expo-haptics (13.0.1)
[RUN_GRADLEW] - expo-image-loader (4.7.0)
[RUN_GRADLEW] - expo-image-picker (15.0.7)
[RUN_GRADLEW] - expo-keep-awake (13.0.2)
[RUN_GRADLEW] - expo-location (17.0.1)
[RUN_GRADLEW] - expo-media-library (16.0.5)
[RUN_GRADLEW] - expo-modules-core (1.12.25)
[RUN_GRADLEW] - expo-notifications (0.28.18)
[RUN_GRADLEW] - expo-secure-store (13.0.2)
[RUN_GRADLEW] - expo-splash-screen (0.27.6)
[RUN_GRADLEW] - expo-system-ui (3.0.7)
[RUN_GRADLEW] - expo-task-manager (11.8.2)
[RUN_GRADLEW] - expo-web-browser (13.0.3)
[RUN_GRADLEW] - unimodules-app-loader (4.6.0)
[RUN_GRADLEW] > Configure project :react-native-reanimated
[RUN_GRADLEW] Android gradle plugin: 8.2.1
[RUN_GRADLEW] Gradle: 8.8
[RUN_GRADLEW] > Task :app:createBundleReleaseJsAndAssets
[RUN_GRADLEW] (node:87067) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
[RUN_GRADLEW] (Use node --trace-deprecation ... to show where the warning was created)
[RUN_GRADLEW] Starting Metro Bundler
[RUN_GRADLEW] warning: Bundler cache is empty, rebuilding (this may take a minute)
[RUN_GRADLEW] Android Bundled 22859ms node_modules/expo-router/entry.js (3801 modules)
[RUN_GRADLEW] Writing bundle output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
[RUN_GRADLEW] Writing sourcemap output to: /private/var/folders/57/5v6md6zs0cnctkt9_s559f5w0000gn/T/eas-build-local-nodejs/acd396c1-aaec-4475-99a2-55c8c9f44129/build/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
[RUN_GRADLEW] Copying 57 asset files
[RUN_GRADLEW] Done writing bundle output
[RUN_GRADLEW] Done writing sourcemap output
Have you fixed this? @nitinpatelm
no am not able to fix it @janmallari
@nitinpatelm what's the output of the expo-doctor for your project?
I'm facing the same issue for 2-3 days, expo-doctor returns no warnings/errors.
I'm facing the same issue for 2-3 days,
expo-doctorreturns no warnings/errors.
same here
After running ./gradlew build --warning-mode all in android folder, it's stopped here (I closed the window after 2-3 hours without update).
> Task :app:createBundleReleaseJsAndAssets
env: load .env
env: export EXPO_PUBLIC_API_URL
Starting Metro Bundler
warning: Bundler cache is empty, rebuilding (this may take a minute)
Android Bundled 5051ms node_modules/expo-router/entry.js (1541 modules)
Writing bundle output to: /Users/rusnar/Documents/Projects/fuudo/mobile-app-courier/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
Writing sourcemap output to: /Users/rusnar/Documents/Projects/fuudo/mobile-app-courier/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
Copying 26 asset files
Done writing bundle output
Done writing sourcemap output
<===----------> 23% EXECUTING [3m 6s]
> IDLE
> IDLE
> IDLE
> :app:createBundleReleaseJsAndAssets
> IDLE
i am getting the same issue after upgrading to expo 51. Any update?
Similar issue with [email protected], build gets stuck at following on eas and fails after timeout. No issues reported by expo doctor, fails both locally and on EAS. Though development build works. Metro bundler along with expo export seems to be working.
Task :expo-modules-core:lintVitalAnalyzeRelease
Using openjdk 17.
Edit - it was an issue with one of the dependencies nativewind 4
Tracking issue here: https://github.com/nativewind/nativewind/issues/1139
Similar issue with
[email protected], build gets stuck at following on eas and fails after timeout. No issues reported by expo doctor, fails both locally and on EAS. Though development build works. Metro bundler along withexpo exportseems to be working.Task :expo-modules-core:lintVitalAnalyzeRelease
Using openjdk 17.
Edit - it was an issue with one of the dependencies nativewind 4
How did you figure it out, so I know how to deal with future issues like this?
How did you figure it out, so I know how to deal with future issues like this?
Removed dependencies one by one to see if build works. I don't know if there's better way.
Similar issue with
[email protected], build gets stuck at following on eas and fails after timeout. No issues reported by expo doctor, fails both locally and on EAS. Though development build works. Metro bundler along withexpo exportseems to be working.Task :expo-modules-core:lintVitalAnalyzeRelease
Using openjdk 17.
Edit - it was an issue with one of the dependencies nativewind 4
I have nativewind 4 in my project. How did you fix it?
Tracking issue here: nativewind/nativewind#1139
@margretheluth see this. You might need to switch between different minor versions.
I am having the same issue with Expo 52 on iOS
Same issue with Expo 52, happens for android build only tho using nativewind v4
After fully removing nativewind from the project, the build worked. I installed nativewind version 4.0.1., reinstall node_modules, prebuild expo and it worked. Hope it helps.
This issue is stale because it has been open for 30 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.
Same issue on Android with
- Expo v52
- Nativewind 4.0.36
The issue happen when I add the import "../global.css"; in my root layout file.
My tailwind config was including all node_modules causing everything to hang. Was unable to get any error message until locally:
./node_modules/.bin/expo export:embed --eager --platform ios --dev false
Which gave me:
warn - Your `content` configuration includes a pattern which looks like it's accidentally matching all of `node_modules` and can cause serious performance issues.
warn - Pattern: `./**/*.js`
Removed that pattern from my tailwind.config.js and everything worked again.