Repository navigation
assembleRelease hangs at bundleReleaseJsAndAssets after creating ReactPackager #7009
Description
Activity
Can you try running the 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/releasemanually and see what's happening?Running with
--verbosegives me this:ReactNativePackager:SocketClient connecting to +0ms /var/folders/rk/_130h6297tqggkt_m46j4yhr0000gn/T/react-packager-51137fab88b20c4d45b8a657f93d9f23 bundle: Created ReactPackagerStill hangs indefinitely. Is there anything I can do to get more information?
I am experiencing the same issue on Windows 10.
Trace here:
C:\Users\ma1069\rn\Test1\android>gradlew assembleRelease :app:preBuild UP-TO-DATE :app:preReleaseBuild UP-TO-DATE :app:checkReleaseManifest :app:preDebugBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE :app:prepareComFacebookFrescoDrawee081Library UP-TO-DATE :app:prepareComFacebookFrescoFbcore081Library UP-TO-DATE :app:prepareComFacebookFrescoFresco081Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipeline081Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineOkhttp081Library UP-TO-DATE :app:prepareComFacebookReactReactNative0231Library UP-TO-DATE :app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE :app:prepareReleaseDependencies :app:compileReleaseAidl UP-TO-DATE :app:compileReleaseRenderscript UP-TO-DATE :app:generateReleaseBuildConfig UP-TO-DATE :app:generateReleaseAssets UP-TO-DATE :app:mergeReleaseAssets UP-TO-DATE :app:generateReleaseResValues UP-TO-DATE :app:generateReleaseResources UP-TO-DATE :app:mergeReleaseResources UP-TO-DATE :app:bundleReleaseJsAndAssets bundle: Created ReactPackager > Building 63% > :app:bundleReleaseJsAndAssets@satya164 I have a similar output when running your command:
C:\Users\ma1069\rn\Test1>react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android\app\build\intermediates\assets\release\index.android.bundle --assets-dest android\app\build\intermediates\res\merged\release --verbose ReactNativePackager:SocketClient connecting to +0ms \\.\pipe\C:\Users\ma1069\AppData\Local\Temp\react-packager-be8ba2d544af799f2cbe7bc25f48b1db bundle: Created ReactPackagernotes: I have no idea about what the problem is, but this problem seems to occur both on v0.23.1 and the previous release...
Same problem on OS X.
Igors-Mac-mini:android igorsousa$ ./gradlew assembleRelease
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE
:app:prepareComFacebookFrescoDrawee081Library UP-TO-DATE
:app:prepareComFacebookFrescoFbcore081Library UP-TO-DATE
:app:prepareComFacebookFrescoFresco081Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipeline081Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineOkhttp081Library UP-TO-DATE
:app:prepareComFacebookReactReactNative0231Library UP-TO-DATE
:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:app:prepareReleaseDependencies
:app:compileReleaseAidl UP-TO-DATE
:app:compileReleaseRenderscript UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
Building 63% > :app:bundleReleaseJsAndAssetsHangs indefinitely.
This is fixed by downgrading to 22.2, but fails from 23.0 to 24-rc5.
Reacted by Matteo Avalle and vnnklWeird thing: I created a new project with v0.23.1 on the same device giving the issue before, and now everything is working perfectly!
Has it already been solved? O_o
This issue is tagged "needs more info". Having same issue on Linux with
0.24.1. What info is needed?Update: Here, downgrading to
0.22.2doesn't fix it like it did for @andrewtoth .Could anybody share a repo / gist with a ready-made reproducible setup? I’ll try to dig into it.
I'm stracing it.
$ strace -f -o s.trace ./gradlew assembleReleaseand get tons ofconnection timed out.Got to go but when I kill it, this is the last lines:
15729 madvise(0x7f0e877d3000, 1028096, MADV_DONTNEED <unfinished ...> 16398 futex(0x7f0ec0326580, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> 15729 <... madvise resumed> ) = 0 16398 <... futex resumed> ) = 1 15729 _exit(0) = ? 15724 <... futex resumed> ) = 0 16398 futex(0x7f0eb8078754, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f0eb8078750, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1} <unfinished ...> 15729 +++ exited with 0 +++ 15724 mmap(0x7f0e981bf000, 12288, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0 <unfinished ...> 16398 <... futex resumed> ) = 1 15724 <... mmap resumed> ) = 0x7f0e981bf000 15721 <... futex resumed> ) = 0 16398 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> 15724 rt_sigprocmask(SIG_SETMASK, [QUIT], <unfinished ...> 15721 futex(0x7f0eb8078728, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...> 16398 <... futex resumed> ) = 0 15724 <... rt_sigprocmask resumed> NULL, 8) = 0 15721 <... futex resumed> ) = -1 EAGAIN (Resource temporarily unavailable) 16398 futex(0x7f0e80002054, FUTEX_WAIT_PRIVATE, 5, NULL <unfinished ...> 15724 madvise(0x7f0e981bf000, 1028096, MADV_DONTNEED <unfinished ...> 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> 15724 <... madvise resumed> ) = 0 15721 <... futex resumed> ) = 0 15724 _exit(0) = ? 15721 mprotect(0x7f0ec0f52000, 4096, PROT_READ <unfinished ...> 15724 +++ exited with 0 +++ 15721 <... mprotect resumed> ) = 0 15721 mprotect(0x7f0ec0f52000, 4096, PROT_READ|PROT_WRITE) = 0 15721 mprotect(0x7f0ec0f53000, 4096, PROT_NONE) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 3, {31723, 869650933}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 879853429}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 890100723}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 900309431}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 910513853}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 920722729}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 930928791}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 945324593}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 955531614}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 965743529}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 975940224}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 986150479}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 996358141}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 6561380}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 16801116}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 26959933}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 37182244}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 47393192}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 57599051}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 68168060}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 78446842}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 89002891}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 99208753}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 109830238}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 120139041}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 130431480}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 140959220}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 151537588}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 162082851}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 172301988}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 182891199}, ffffffff) = -1 ETIMEDOUT (Connection timed out) 15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0 15721 unlink("/tmp/hsperfdata_leo/15709") = 0 15721 exit_group(130) = ? 15734 +++ exited with 130 +++ 15733 +++ exited with 130 +++ 16398 +++ exited with 130 +++ 15728 +++ exited with 130 +++ 15727 +++ exited with 130 +++ 15726 +++ exited with 130 +++ 15725 +++ exited with 130 +++ 15723 +++ exited with 130 +++ 15722 +++ exited with 130 +++ 15721 +++ exited with 130 +++ 15720 +++ exited with 130 +++ 15719 +++ exited with 130 +++ 15717 +++ exited with 130 +++ 15716 +++ exited with 130 +++ 15718 +++ exited with 130 +++ 15709 +++ exited with 130 +++Here is the full strace.
@davidaurelio and @satya164 could you please let me know if this information is helpful or if I could provide more insight into this bug that affects several people, including my build server where Andrew's "fix" doesn't fix it.
@davidaurelio @satya164 Here are exact steps to reproduce:
git clone git@github.com:andrewtoth/releaseError.git cd releaseError npm install cd android ./gradlew assembleRelease36 remaining items
Similar issue on my project. I have two projects one works fine but one freezes. No errors no warnings.
This worked for me: gradlew assembleRelease --console plain
After some minutes, it finally finish building the release apk
@medisoft Didn't work for me. Waited for an hour no progress.
@Kabangi, which platform you are using? I got it working on windows 10.
Am using macOS 10. Just got it working. Basicallly I deleted my local repo and clone it again. Have no idea why that works.
What did you do to make it work?
In my case the issue is being introduced by
jest. As soon as I runnpm tthe issue appears. Have to reclone the app to do away with it.Reacted by Athman GudeFacing this issue on
"react-native": "0.46.0",, it's irritating nowI am also facing this issue
Failed to capture snapshot of input files for task 'bundleReleaseJsAndAssets' property '$1' during up-to-date check. > Failed to create MD5 hash for file '/Users/johnfrancis/Projects/tyron/tyron/metro-bundler-symbolicate11781-20752-6dibhc.l9v1w.sock'. * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.UncheckedIOException: Failed to capture snapshot of input files for task 'bundleReleaseJsAndAssets' property '$1' during up-to-date check. at org.gradle.api.internal.changedetection.rules.AbstractNamedFileSnapshotTaskStateChanges.buildSnapshots(AbstractNamedFileSnapshotTaskStateChanges.java:89) at org.gradle.api.internal.changedetection.rules.AbstractNamedFileSnapshotTaskStateChanges.<init>(AbstractNamedFileSnapshotTaskStateChanges.java:54) at org.gradle.api.internal.changedetection.rules.InputFilesTaskStateChanges.<init>(InputFilesTaskStateChanges.java:28) at org.gradle.api.internal.changedetection.rules.TaskUpToDateState.<init>(TaskUpToDateState.java:55) at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.getStates(DefaultTaskArtifactStateRepository.java:164) at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:79) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228) at org.gradle.internal.Transformers$4.transform(Transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:196) at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:193) at org.gradle.internal.Transformers$4.transform(Transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:193) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102) at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) Caused by: org.gradle.api.UncheckedIOException: Failed to create MD5 hash for file '/Users/johnfrancis/Projects/tyron/tyron/metro-bundler-symbolicate11781-20752-6dibhc.l9v1w.sock'. at org.gradle.api.internal.hash.DefaultFileHasher.hash(DefaultFileHasher.java:48) at org.gradle.api.internal.changedetection.state.CachingFileHasher.snapshot(CachingFileHasher.java:79) at org.gradle.api.internal.changedetection.state.CachingFileHasher.snapshot(CachingFileHasher.java:68) at org.gradle.api.internal.changedetection.state.CachingFileHasher.hash(CachingFileHasher.java:60) at org.gradle.api.internal.changedetection.state.AbstractFileCollectionSnapshotter.snapshot(AbstractFileCollectionSnapshotter.java:97) at org.gradle.api.internal.changedetection.rules.AbstractNamedFileSnapshotTaskStateChanges.buildSnapshots(AbstractNamedFileSnapshotTaskStateChanges.java:87) ... 74 more Caused by: java.io.FileNotFoundException: /Users/johnfrancis/Projects/tyron/tyron/metro-bundler-symbolicate11781-20752-6dibhc.l9v1w.sock (Operation not supported on socket) at com.google.common.io.Files$FileByteSource.openStream(Files.java:126) at com.google.common.io.Files$FileByteSource.openStream(Files.java:116) at com.google.common.io.ByteSource.copyTo(ByteSource.java:234) at com.google.common.io.Files.copy(Files.java:423) at org.gradle.api.internal.hash.DefaultFileHasher.hash(DefaultFileHasher.java:45) ... 79 moreReacted by afilp and Brad Mc HelemHi, I ran into this problem getting our Android app published, and ended up writing a medium article that addresses this and related issues.
Reacted by Jeff KnaggsReacted by Sam Thomson and Ricardo FuhrmannHi,
I am facing this kind of problem when i am passing cd andriod && ./gradlew assembleRelease.Cannot find entry file index in any of the roots: ["/home/../../ReactNative/testPermissionApp"]
:app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
Process 'command 'node'' finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Reacted by afilp- What went wrong:
When the gradle build hangs, it is often due to an insufficient amount of heap memory. Edit
android/gradle.propertiesand make sure the lineorg.gradle.jvmargs=line is not commented and contains something like-Xmx2048mor even more, depending on your app.While it's building, check with
ps | grep gradleif the-Xmx...setting is in effect.I ran into this issue today and was puling my hair out for about 6 hours since morning. And finally @patwaswapnil 's comment (most probably the least helpful)
Try this workaround -
gradlew assembleRelease --console plain
led me to figuring out what was wrong.
I noticed this,:app:processReleaseResources/Users/janithar/Desktop/Repos/mobile_react_native/ProfessionalApp/android/app/build/intermediates/res/merged/release/drawable-hdpi/node_modules_reactnavigation_src_views_assets_backicon.png: error: uncompiled PNG file passed as argument. Must be compiled first into .flat file.. error: failed parsing overlays.which led me to this comment and now I can assemble a release apk. :D
Reacted by Bruno LemosFor anyone facing this issue, what I did was removed the
node_modulesfolder and rannpm install.- locked as resolved and limited conversation to collaborators
on May 24, 2018 - addedResolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
on Jul 19, 2018
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.