Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unparsed aapt error(s)!

I'm working with Android in Eclipse and was trying to combine code from a template project I found into the skeleton project that Android creates when you start a new project. This is not an initial setup; have gotten several projects running and although I'm new to Android coding I have been working for several weeks without this problem so the environment is set up fine I think.

The error I'm seeing is -

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

At one point I cleared the console messages and now even after closing the project and Eclipse, then reopening I get no console messages and none of my source or resource files are flagged.

What is aapt and where should I look for the source of this error? Thanks in advance for your help.

like image 760
PaulP Avatar asked Feb 10 '12 16:02

PaulP


Video Answer


2 Answers

I sorted this out. So for anyone else still on the learning curve with me, the solultion is as noted in my comment. In addition -

aapt = Android Asset Packaging Tool From the Developers Guide - "The Android Asset Packaging Tool (aapt) takes your application resource files, such as the AndroidManifest.xml file and the XML files for your Activities, and compiles them."

The solution for me was simply to delete the error on the 'Problem' window (right click | delete). Then, force a rebuild by rerunning the app. Any remaining problems will now show up and be logged so you can track them down.

Hope this is helpful to others.

like image 178
PaulP Avatar answered Sep 20 '22 17:09

PaulP


This happened for me when I accidentally attempted to "run" an Android XML layout file. It created a file with the layout name and _out.xml appended. I needed to delete that file before I could perform any further builds.

like image 41
Jeff Axelrod Avatar answered Sep 20 '22 17:09

Jeff Axelrod