When developing Android applications on the eclipse platform, you may encounter the following error message when editing, modifying, or adding or deleting Res/resource files: "unparsed
Aapt error (s )! Check the console
Output ", because it does not describe where the error is, I don't know how to fix it, So Baidu looks for it, many of which have said:
You can check the prompts in the console. For example, a new XML file: newscreen is added to RES/layout. XML, then you will encounter the above error prompt, the console will have a similar prompt: 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 the error on the console or cannot understand the error. Example:
[2010-03-29
10:02:47-Sudoku] W/resourcetype (3540): Bad XML block: Header size 62
Or total size 26129448 is larger than data size 0 [2010-03-29 10:02:47-Sudoku] E:/workspace/Sudoku/RES/menu. XML: 2: Error error parsing XML: No element found [2010-03-29 10:04:55-Sudoku] W/resourcetype (4892): Bad XML block: when Header size 62 or total size 0 is larger than data size 0 or higher,
Click project ---------> clean
... No problem.
"Just do it. It's really okay! Http://android.blog.51cto.com/268543/307964