android studio-打包报Errors while building APK. You can find the errors in the 'Messages' view.报错解决方案

android打包报错:

控制台报错解决方案:Error:Error converting bytecode to dex: Cause: com.android.dex.DexIndexOverflowException: Cannot merge new index 67092 into a non-jumbo instruction!

 

找到app下的build.gradle

在defaultConfig中添加

multiDexEnabled true代码即可解决

android studio-打包报Errors while building APK. You can find the errors in the 'Messages' view.报错解决方案