Aapt.exe throws an unhandled exception by creating a * .apk file for an Android project in Eclipse

I just upgraded my system to Ice Cream Sandwich (Android 4.0), and now every time I try to run the application in the debugger, I get a failure in aapt.exe .

If I just build, it builds fine, but when I go to run it in the debugger, aapt.exe fails (which gives a dialog and asks me if I want to send data to Microsoft) and the icon of my project in Project_Explorer shows that it has an error (s).

+4
android windows apk upgrade
Oct 27 '11 at 8:43
source share
3 answers

AAPT has a known problem for r15, try changing the assembly output to normal
http://tools.android.com/knownissues
AAPT crashes on Windows in some cases when the assembly output is set to verbose.

Workaround is to install

Eclipse > Preferences > Android > Build > Build Output

smaller than Verbose, for example. Normal.We has a fix that will be available in tools 16. [ Issue 20395 ]

+5
Nov 02 2018-11-11T00:
source share

In my case, this solution does not work (Build Output), so I had to think about it. The problem was the .9.png files (bitmaps with my counter). I uninstalled it and aapt.exe works fine.

+2
Dec 05 '12 at 7:26
source share

I have the same problem with ADT 16.0.1 (released: December 2011). An error C:\android-sdk\platform-tools\aapt.exe crunch -v -SC:\Do... executing C:\android-sdk\platform-tools\aapt.exe crunch -v -SC:\Do... and Windows shows an exception thrown from aapt.exe .

Then a 0-byte <myproject>.apk was created. And Eclipse shows an error ...resources.ap_ file not found...

By the way, I use modern (today) Eclipse, android-sdk and ADT.

But my problem was solved by changing build output to normal , as described in the solution above.

I also suggest changing the title of the question.

0
Dec 29 '11 at 10:51
source share



All Articles