eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

Android build hangs/stuck after upgrading to expo 51

Open nitinpatelm opened this issue 1 year ago • 13 comments

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

nitinpatelm avatar Oct 13 '24 14:10 nitinpatelm

Have you fixed this? @nitinpatelm

janmallari avatar Oct 14 '24 00:10 janmallari

no am not able to fix it @janmallari

nitinpatelm avatar Oct 14 '24 05:10 nitinpatelm

@nitinpatelm what's the output of the expo-doctor for your project?

szdziedzic avatar Oct 14 '24 06:10 szdziedzic

I'm facing the same issue for 2-3 days, expo-doctor returns no warnings/errors.

Richard-97 avatar Oct 14 '24 07:10 Richard-97

I'm facing the same issue for 2-3 days, expo-doctor returns no warnings/errors.

same here

nitinpatelm avatar Oct 14 '24 09:10 nitinpatelm

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

Richard-97 avatar Oct 14 '24 10:10 Richard-97

i am getting the same issue after upgrading to expo 51. Any update?

margretheluth avatar Oct 14 '24 18:10 margretheluth

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

luffy-taro avatar Oct 14 '24 19:10 luffy-taro

Tracking issue here: https://github.com/nativewind/nativewind/issues/1139

shovel-kun avatar Oct 14 '24 23:10 shovel-kun

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

How did you figure it out, so I know how to deal with future issues like this?

janmallari avatar Oct 15 '24 00:10 janmallari

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.

luffy-taro avatar Oct 15 '24 04:10 luffy-taro

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

I have nativewind 4 in my project. How did you fix it?

margretheluth avatar Oct 15 '24 06:10 margretheluth

Tracking issue here: nativewind/nativewind#1139

@margretheluth see this. You might need to switch between different minor versions.

luffy-taro avatar Oct 15 '24 06:10 luffy-taro

I am having the same issue with Expo 52 on iOS

markwitt1 avatar Oct 29 '24 23:10 markwitt1

Same issue with Expo 52, happens for android build only tho using nativewind v4

disolaterX avatar Nov 02 '24 09:11 disolaterX

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.

Richard-97 avatar Nov 02 '24 10:11 Richard-97

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.

github-actions[bot] avatar Dec 03 '24 00:12 github-actions[bot]

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.

github-actions[bot] avatar Dec 11 '24 00:12 github-actions[bot]

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.

baptiste-mnh avatar Dec 12 '24 14:12 baptiste-mnh

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.

d-haxton avatar Feb 17 '25 23:02 d-haxton