When using Android Studio, the compilation was successful but the build apk was used to error
Environment: Android Studio 1.5, jdk1.7
Error: 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.ide.common.process.ProcessException: Org.gradle.process.internal.ExecException:Process ' command ' D:\Program files\java\jdk1.7.0_79\bin\java.exe ' Finished with Non-zero exit value 1
Re-created a new empty engineering comparison build.gradle found "Buildtoolsversion ' 23.0.3 '" Problems with the project is Buildtoolsversion ' 24.0.3 '. Solve the problem after changing the buildtoolsversion. I think this issue is still a version compatibility issue. jdk1.7 Use the latest 24.0.3. There is a problem .
Error:execution failed for task ': App:transformclasseswithdexfordebug '.