Error Description:
Question 1:
Error:execution failed for task ': App:transformclasseswithdexfordebug '.
> com.Android. Build.api.transform.TransformException: Com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process ' command ' f:\ Program Files (x86) \java\jdk1.8.0_31\bin\java.exe "finished with Non-zero exit value 1
Question 2:
Error:execution failed for task ': App:transformclasseswithdexfordebug '.
> com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException: Org.gradle.process.internal.ExecException:Process ' command ' F:\Program Files (x86) \java\jdk1.8.0_31\bin\java.exe ' Finished Withnon-zero exit value 2
Question 3:
Error:execution failed for task ': App:transformclasseswithdexfordebug '.
> com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException: Org.gradle.process.internal.ExecException:Process ' command ' F:\Program Files (x86) \java\jdk1.8.0_31\bin\java.exe ' Finished Withnon-zero exit value 3
Error Analysis:
Question 1:
1. Dependent packets are duplicated (like V4 and Nineoldandroids). A dependency on the same package is implemented in the Gradle file, so this error is reported.
2.build_tools_version version is too high
Question 2:
Dex Throttling Issues
Question 3:
Not enough memory
Workaround:
question 1:
1. Delete the duplicate dependency on the same packet. After the modification still error, clean,rebuild, recompile.
2. Reduce build_tools_version version, where I modified to B uildtoolsversion "23.0.2"
Question 2:
This error in the app's build.gradle add the following sentence is good.
Android {
Defaultconfig { ... true }}
Question 3:
This error is added in the App.bulid, and then rebuild, and then run on the line. 4g can look at the computer Configuration changes (2g,3g,6g,8g).
dexoptions { "4g"}
Android Development Bug and workaround 1