鍍金池/ 問答/HTML5  HTML/ ionic3 ionic cordova build android --pro

ionic3 ionic cordova build android --prod 打包報錯,如何處理Gradle 5.0

報錯關(guān)鍵代碼信息如下:
貌似主要是 Gradle 5.0 這個東西,該如何處理呢?

[14:17:24]  lint finished in 5.73 s
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now
published.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' in
stead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be re
moved in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_awo1ahul3j8zm40njgaa4kho7.run(E:\Ionic3Demo\zh\platforms\androi
d\app\build.gradle:144)

.
.
.
省
略
.
.
.
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForD
ebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.de
xing.DexArchiveMergerException: Unable to merge dex

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
回答
編輯回答
裸橙

我也遇到這個問題,請問解決了嗎

2017年4月27日 09:19
編輯回答
舊時光

請問你們解決這個問題了么,我也碰到了··

2017年12月11日 20:12