22 January 2011

[solved] Unparsed aapt error(s)! Check the console for output

Today I wrote some codes for my Android application as usual, and I found a parsing error that says:

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

However, I didn't see any errors after checking all the files. So what is going on here? It happens when some *.out.xml files are generated before the entire project gets built for execution. How can this happen? It happens when you run the application when in a resource file.

The solution to this issue is simple: make sure you clean any post-built files before building your application for a run. To achieve this, go to Project --- Clean in the Eclipse menu and it will work again. Or, you can just delete R.java file. It will get created again and the problem is solved.

No comments: