Android Development Bug and workaround 1

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.