打包时控制台输出:
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