How to handle Android error "unparsed aapt error (s )"

Source: Internet
Author: User

In Android Application Development, when editing, modifying, or adding or deleting resource files under Res/, the following error message is displayed:

"Unparsed aapt error (s )! Check the console for output ".

You can check the prompts in the console to solve the problem.

For example, if a new XML file: newscreen. XML is added to RES/layout, the following error message is displayed on the console:

The layout file name can only contain characters in [A-z0-9] etc.

That is, the layout file name can only contain 26 lower-case letters and numbers 0 ~ 9. Therefore, an error will be reported if the file name contains uppercase letters.

 

If the error message is unclear. java deletes the file to regenerate it. you can delete a file under Res (back up the file first), R. java will be updated again.

 

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.