ionic3 ionic cordova build android --prod 打包报错,如何处理Gradle 5.0
报错关键代码信息如下:
貌似主要是 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也遇到这个问题,请问解决了吗
请问你们解决这个问题了么,我也碰到了··