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"