2017-04-21 227 views
3

一個瘋狂的問題,當我運行gradlew assembleRelease,該錯誤信息是:[反應本地] gradlew assembleRelease --debug打造成功的,但gradlew assembleRelease構建失敗

... 
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. 

有一些proguard相關的警告信息,如重複的類等,我已經resoved這些警告消息,但它仍然建立失敗。當我添加--debug,它建立成功,瘋狂!

... 
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 

最後更新: 如果我停下建設過程中,等待片刻繼續,它建立成功了,我已經設置SLAVE_AAPT_TIMEOUT至30,似乎不起作用。使用搖籃有以下時的SwitchE永遠不會發生

回答

0

問題:

gradlew assembleRelease --console plain 
+0

產生的,但應用程序崩潰後,在啓動活動上安裝設備構建 – JosephM

相關問題