zoukankan      html  css  js  c++  java
  • com.android.dex.DexIndexOverflowException: Cannot merge new index 66299 into a non-jumbo instruction

    打包时控制台输出:

    Error:Execution failed for task ':app:transformClassesWithDexForAll32Release'.
    > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: Cannot merge new index 66676 into a non-jumbo instruction!


    在主工程的build.gradle文件,android{} 内添加如下内容

        android.dexOptions {
            jumboMode = true
    //       javaMaxHeapSize "2g"
        }
    Eclipse 中是在project.properties中添加dex.force.jumbo=true

  • 相关阅读:
    02 树莓派的远程连接
    01 树莓派系统安装
    Python正课110 —— Django入门
    作业7 答案
    作业8
    作业7
    作业6
    文件操作
    字符编码
    基本数据类型之集合
  • 原文地址:https://www.cnblogs.com/pengmn/p/9947412.html
Copyright © 2011-2022 走看看