Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build hangs/stuck after upgrading to expo 51 #2618

Open
nitinpatelm opened this issue Oct 13, 2024 · 16 comments
Open

Android build hangs/stuck after upgrading to expo 51 #2618

nitinpatelm opened this issue Oct 13, 2024 · 16 comments

Comments

@nitinpatelm
Copy link

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 nitinpatelm added the needs review Issue is ready to be reviewed by a maintainer label Oct 13, 2024
@janmallari
Copy link

Have you fixed this? @nitinpatelm

@nitinpatelm
Copy link
Author

no am not able to fix it @janmallari

@szdziedzic
Copy link
Member

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

@szdziedzic szdziedzic added eas build and removed needs review Issue is ready to be reviewed by a maintainer labels Oct 14, 2024
@Richard-97
Copy link

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

@nitinpatelm
Copy link
Author

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

same here

@Richard-97
Copy link

Richard-97 commented Oct 14, 2024

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

@margretheluth
Copy link

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

@luffy-taro
Copy link

luffy-taro commented Oct 14, 2024

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

@shovel-kun
Copy link

Tracking issue here: nativewind/nativewind#1139

@janmallari
Copy link

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?

@luffy-taro
Copy link

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.

@margretheluth
Copy link

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?

@luffy-taro
Copy link

Tracking issue here: nativewind/nativewind#1139

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

@markwitt1
Copy link

markwitt1 commented Oct 29, 2024

I am having the same issue with Expo 52 on iOS

@disolaterX
Copy link

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

@Richard-97
Copy link

Richard-97 commented Nov 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants