Android Studio compilation error: Process & #39; command & #39; D: \ SDK \ AS \ sdk \ build-tools \ 23.0.0 \ aapt.exe & #39; & #39; finished with non-zero exit value 1, nonzeroexitcode

Source: Internet
Author: User

Android Studio compilation error: Process 'COMMAND 'd: \ SDK \ AS \ sdk \ build-tools \ 23.0.0 \ aapt.exe ''finished with non-zero exit value 1, nonzeroexitcode

AGPBI: {"kind": "error", "text": "No resource identifier found for attribute \ u0027text_titleText \ u0027 in package \ u0027 package name \ u0027", "sources ": [{"file": "D :\\ workSpace \ Android Studio \ Bank \ res \ layout \ ui_testpersoninfo.xml", "position": {"startLine ": 21}], "original ":""}

 

 

FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task': processRenmaiDebugResources '.

> Com. android. ide. common. process. processException: org. gradle. process. internal. execException: Process 'COMMAND 'd: \ SDK \ AS \ sdk \ build-tools \ 23.0.0 \ aapt.exe ''finished with non-zero exit value 1

 

AGPBI: {"kind": "error", "text": "No resource identifier found for attribute \ u0027text_titleText \ u0027 in package \ u0027 package name \ u0027", "sources ": [{"file": "D :\\ workSpace \ Android Studio \ Bank \ res \ layout \ ui_testpersoninfo.xml", "position": {"startLine ": 21}], "original ":""}

This statement indicates that the resource id cannot be found in row 21st of the ui_testpersoninfo layout file.

The cause is as follows:

1. The resource R file may not be automatically generated due to invalid naming rules.

2. problems may occur when you declare custom properties of a custom control.

 

 

The Gradle tool automatically identifies the package, so you do not need to specify the package name.

3. The resource R file cannot be generated due to other problems

Related Article

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.