/android/sdk/build-tools/21.1.2/aapt ' finished with Non-zero exit value 42

Source: Internet
Author: User

I believe a lot of friends will meet

  Error:Error: com.android.ide.common.process.ProcessException:    org.gradle.process.internal.ExecException: Process ‘command ‘/Users/billy/Library/Android/sdk/build-tools/21.1.2/aapt‘‘ finished with non-zero exit value 42
This problem, find a lot of information, although solved, but still do not know why, the main reason for the problem is because the resource file parsing error.
The common causes are
1. resource File name conflicts
This is a different file name.
2. Reference packet Duplication
Android Studio under the V4 package or V7 package, this time in the Libs to add another package, will report this error, delete the Libs under the duplicate package on the line.
2. File name display format does not correspond to the format of the file itself
This is more difficult to find, re-change the correct file on it.

/android/sdk/build-tools/21.1.2/aapt ' finished with Non-zero exit value 42

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.