[Android] unparsed aapt error (s )! Check the console for output

Source: Internet
Author: User

When you develop Android applications on the eclipse platform, you may encounter the following error message: "unparsed aapt error (s )! Check the console for output ", because it does not describe where the error is, I do not know how to fix it, So Baidu looks for many of themArticleAll said:

You can check the prompts in the console.

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."

I tried to rename the newly added XML file multiple times or even delete the R. Java file! Then we can see another method:

"But you cannot find an error on the console or cannot understand the error.

Example:

[10:02:47-Sudoku] W/resourcetype (3540): Bad XML block: Header size 62 or total size 26129448 is larger than data size 0

[10:02:47-Sudoku] E: \ workspace \ Sudoku \ res \ Menu \ menu. xml: 2: Error error parsing XML: No element found

[10:04:55-Sudoku] W/resourcetype (4892): Bad XML block: Header size 62 or total size 0 is larger than data size 0

When the above errors occur,Click project ---------> clean... It will be okay"

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.