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

posted @ 2018-11-12 16:47  a318013800  阅读(506)  评论(0编辑  收藏  举报