聚會時間公告: 因應COSCUP 2011, Kalug 8月份休會一次

一月 26, 2011
» Android aapt tool

aapt stands for Android Asset Packaging Tool and is included in tools/ directory of the SDK. This tool allows you to view, create, and update Zip-compatible archives (zip, jar, apk). It can also compile resources into binary assets.

Most important of all, build scripts and IDE plugins can utilize this tool to package the apk file that constitutes an Android application.

To use aapt directly, open a terminal, go to the tools/ directory, and run the command (for linux and Mac OS X):

$ ./aapt

一月 23, 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.

support:

biggo.com.tw

A Django site.