question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

assembleRelease hangs at bundleReleaseJsAndAssets after creating ReactPackager

See original GitHub issue

Trying to create a signed apk hangs indefinitely at 89% on the bundleReleaseJsAndAssets step, after outputting bundle: Created ReactPackager. This is using react-native version 23, on Mac running version 10.11.4. I have the keystore generated and gradle files setup properly. I’ve tried restarting and cleaning. The following are the logs beginning at the relevant build step.

19:59:21.485 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :app:bundleReleaseJsAndAssets (Thread[Daemon worker,5,main]) started.
19:59:21.485 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :app:bundleReleaseJsAndAssets
19:59:21.486 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':app:bundleReleaseJsAndAssets'
19:59:21.486 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':app:bundleReleaseJsAndAssets' is up-to-date
19:59:23.369 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':app:bundleReleaseJsAndAssets' (up-to-date check took 1.883 secs) due to:
  No history is available.
19:59:23.369 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':app:bundleReleaseJsAndAssets'.
19:59:23.370 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command 'react-native''. Working directory: /Users/andrewtoth/Workspace/rspore Command: react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output /Users/andrewtoth/Workspace/rspore/android/app/build/intermediates/assets/release/index.android.bundle --assets-dest /Users/andrewtoth/Workspace/rspore/android/app/build/intermediates/res/merged/release
19:59:23.370 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Environment for process 'command 'react-native'': {PATH=/Users/andrewtoth/.nvm/versions/node/v5.9.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin, JAVA_ARCH=x86_64, MANPATH=/Users/andrewtoth/.nvm/versions/node/v5.9.0/share/man:/usr/local/share/man:/usr/share/man:/usr/local/MacGPG2/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man, JAVA_MAIN_CLASS_3043=org.gradle.wrapper.GradleWrapperMain, APP_ICON_3043=/Users/andrewtoth/Workspace/rspore/android/media/gradle.icns, APP_NAME_3043=Gradle, TERM=xterm-256color, LANG=en_CA.UTF-8, ANDROID_HOME=/Users/andrewtoth/Library/Android/sdk, LOGNAME=andrewtoth, NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist, TERM_PROGRAM_VERSION=361.1, PWD=/Users/andrewtoth/Workspace/rspore/android, XPC_SERVICE_NAME=0, NVM_CD_FLAGS=, SHELL=/usr/local/bin/bash, NVM_DIR=/Users/andrewtoth/.nvm, TERM_PROGRAM=Apple_Terminal, NVM_PATH=/Users/andrewtoth/.nvm/versions/node/v5.9.0/lib/node, OLDPWD=/Users/andrewtoth/Workspace/rspore/android, SECURITYSESSIONID=186a7, USER=andrewtoth, TMPDIR=/var/folders/rk/_130h6297tqggkt_m46j4yhr0000gn/T/, SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.OAkPpQxQiA/Listeners, XPC_FLAGS=0x0, TERM_SESSION_ID=DE31D2B6-9EE3-4C6D-A01A-ADDF6F1387E0, NVM_IOJS_ORG_MIRROR=https://iojs.org/dist, __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0, Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.QFoEd78Blt/Render, com.apple.java.jvmTask=CommandLine, NVM_BIN=/Users/andrewtoth/.nvm/versions/node/v5.9.0/bin, SHLVL=1, HOME=/Users/andrewtoth}
19:59:23.370 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
19:59:23.370 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command 'react-native'.
19:59:23.373 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
19:59:23.373 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
19:59:23.373 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'react-native''
19:59:25.804 [QUIET] [system.out] bundle: Created ReactPackager

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:61 (10 by maintainers)

github_iconTop GitHub Comments

13reactions
alexustinovsmcommented, Jan 27, 2017

I have the same problem and bundleReleaseJsAndAssets task freezes.

react-native: 0.40.0

12reactions
patwaswapnilcommented, Jun 12, 2017

Try this workaround -

gradlew assembleRelease --console plain

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native assembleRelease fails for task - Stack Overflow
For me the creating the bundle failed, but I noticed this comment by Sahin ... gradlew clean app:assembleRelease -x bundleReleaseJsAndAssets.
Read more >
task :app:mergereleaseresources failed
Trying to create a signed apk hangs indefinitely at 89% on the bundleReleaseJsAndAssets step, after outputting bundle: Created ReactPackager.
Read more >
execution failed for task ':react-native-gesture-handler ...
gradlew assembleRelease -x bundleReleaseJsAndAssets ... After ejecting the react-native app to android when i run 'npm run ... Created over 3 years ago....
Read more >
Flipper | Android library for abstract file - kandi
Creates an intent which allows to open the storage volume . ... The React Native app installed from apk stuck after initial page....
Read more >
Active questions tagged react-native+android - Stack Overflow
I am creating a video calling app for Android using React Native where a data only FCM ... assembleRelease fails for task ':app:bundleReleaseJsAndAssets'....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found