账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    ionic3 ionic cordova build android --prod 打包报错,如何处理Gradle 5.0
    42
    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.
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部