. Advertisement .
..3..
. Advertisement .
..4..
Hello everyone. Our program works successfully in Android Studio’s development mode, but when we switch to release mode, it crashes and generates as “execution failed for task ‘:app:transformclasseswithdexfordebug'”the following error:
**FAILURE: Build failed with an exception.**
> Execution failed for task ‘:app:transformClassesWithDexForRelease’.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java” finished with non-zero exit value 1
This is my big test, it is important for me. If you can fix it, please help me. Thank you very much.
The cause:
Class file name duplicate.
The solution:
You can correct this problem by adding a few lines of code to the “gradle” and “local.properties” files.
In local.properties,
and, in gradle file, you will fix this error if you perform this steps:
I hope you fix this error successful.