[react-native] gradlew assembleRelease --debug build succeeded but gralew assembleRelease build failed

Crazy problem when I run gradlew assembleRelease the error message is:

...
Loading dependency graph, done.easeJsAndAssets
warning: the transform cache was reset.
bundle: start
bundle: finish
bundle: Writing bundle output to: xxx\android\app\build\intermediates\assets\release\index.android.bundle
bundle: Copying 5 asset files
bundle: Done writing bundle output
bundle: Done copying assets

FAILURE: Build failed with an exception.

* What went wrong:
Unable to process incoming event 'ProgressComplete ' (ProgressCompleteEvent)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

      

there are some warning warning messages like duplicate class etc. I have rewritten these warning messages, but it still doesn't work. When I add -debug it creates successes, crazy !!!

...
16:53:42.799 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :react-native-image-picker:assembleRelease (Thread[main,5,main]) completed. Took 0.0 secs.
16:53:42.799 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 59.019 secs, idle: 0.031 secs
16:53:42.799 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskGraphExecuter] Timing: Executing the DAG took 59.79 secs
16:53:42.799 [LIFECYCLE] [org.gradle.BuildResultLogger]
16:53:42.809 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD SUCCESSFUL
16:53:42.809 [LIFECYCLE] [org.gradle.BuildResultLogger]
16:53:42.809 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 1 mins 17.957 secs

      

last update: If I paused the construction process and waited for a moment to continue, it succeeds, I set SLAVE_AAPT_TIMEOUT to 30, it doesn't seem to work.

+3


source to share


1 answer


The problem never occurs when using Gradle with the following switch:



gradlew assembleRelease --console plain

      

0


source







All Articles