Android Studio中异常”Execution failed for task ':app:transformClassesWithDexForDebug'.”的解决办法...

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/swwx/paymax/BuildConfig.class 的解决方法defaultConfig {

multiDexEnabled true

} dependencies { provided fileTree(dir: 'libs', include: ['.jar']) provided fileTree(include: ['.jar'], dir: 'libs')

转载于:https://my.oschina.net/u/2619068/blog/779497

你可能感兴趣的:(Android Studio中异常”Execution failed for task ':app:transformClassesWithDexForDebug'.”的解决办法...)