刚刚又被自己蠢到,记录下来以此谨记 Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concu
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/amap/api/maps/model/animation/Animation$AnimationListener; 一个dex文件超过64k错误,一个Error:Execution failed for task ':app:transformClassesWithDexForRelease'错误,也是够蛋疼的。查阅发现这个错误是由于包重复导致的,果不其然,我在lib文件夹下导入了.jar,又在build文件中添加了'引用,删除其一成功。