Android studio编译报错:Error:Execution failed for task ':app:transformClasses_enhancedWithInstantReloadD

时间:2021-04-21 19:47:29

Android studio编译报错:Error:Execution failed for task ':app:transformClasses_enhancedWithInstantReloadDexForDebug'.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process

Android studio编译报错:Error:Execution failed for task ':app:transformClasses_enhancedWithInstantReloadD

从错上几乎看不出有什么有用的信息,但是解决方法就是去掉Enable instant run to hot swap code/resource changes on deploy(default enabled)选项:

Android studio编译报错:Error:Execution failed for task ':app:transformClasses_enhancedWithInstantReloadD