任务':transformClassesWithDexForDebug'的执行失败。离子3请helpp [英] Execution failed for task ':transformClassesWithDexForDebug'. ionic 3 please helpp

查看:2601
本文介绍了任务':transformClassesWithDexForDebug'的执行失败。离子3请helpp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

建立失败

总时间:1分钟10.277秒
失败:构建失败并出现异常。

Total time: 1 mins 10.277 secs FAILURE: Build failed with an exception.


  • 出了什么问题:
    任务执行失败':transformClassesWithDexForDebug'。

  • What went wrong: Execution failed for task ':transformClassesWithDexForDebug'.


com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.dex.DexException:多个dex文件定义Lcom / google / android / gms / internal / zznv;

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zznv;


  • 尝试:
    使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。
    错误:cmd:命令失败,退出代码1错误输出:
    注意:某些输入文件使用或覆盖已弃用的API。
    注意:使用-Xlint重新编译:弃用以获取详细信息。
    注意:某些输入文件使用或覆盖已弃用的API。
    注意:使用-Xlint重新编译:弃用以获取详细信息。
    注意:某些输入文件使用或覆盖已弃用的API。
    注意:使用-Xlint重新编译:弃用以获取详细信息。

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: cmd: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

    FAILURE:构建失败并出现异常。

    FAILURE: Build failed with an exception.


    • 出了什么问题:
      任务'执行失败':transformClassesWithDexForDebug'。

    • What went wrong: Execution failed for task ':transformClassesWithDexForDebug'.


    com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android。 dex.DexException:多个dex文件定义Lcom / google / android / gms / internal / zznv;

    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zznv;


  • 尝试:
    使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。

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

    推荐答案

    转到 platforms / android 并打开 build.gradle

    然后将 multiDexEnabled true 添加到 defaultConfig

    最后看起来应该是这样的:

    It should look like this at the end :

    defaultConfig {
        versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
        applicationId privateHelpers.extractStringFromManifest("package")
    
        if (cdvMinSdkVersion != null) {
            minSdkVersion cdvMinSdkVersion
        }
    
        multiDexEnabled true
    }
    

    编辑

    此后您可能会遇到其他问题。我建议您通过删除每个平台, / platforms / plugins 文件夹来清理项目,然后重新安装所有内容。

    You might have a different issue after this. I suggest you to clean your project by removing every platforms, the /platforms and /plugins folders, and then reinstall everything.

    这篇关于任务':transformClassesWithDexForDebug'的执行失败。离子3请helpp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆