错误com.android.dex.DexIndexOverflowException: Cannot merge new index 77610 into a non-jumbo instructi

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: Cannot merge new index 77610 into a non-jumbo instruction!


直接原因是Java代码太多,jar包太多。

eclipse的解决方案:在项目中的这个文件project.properties中添加一句话:dex.force.jumbo=true

Android studio 解决方案,添加 multiDexEnabled = true

minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
multiDexEnabled = true

猜你喜欢

转载自blog.csdn.net/wyyother1/article/details/79474823