Page 1 of 1

'aapt.exe' stops working

Posted: Wed Jul 06, 2016 12:14 pm
by AxWald
Hi,

my environment:
  • Win 10-64 pro (2 different machines, slightly different installs, see below)
  • JDK 1.8.0_91 / 0_92 properly installed & shown in LC prefs
  • Android SDK & AVD 25.1.7 / Android Studio 2.1.2 (= same version, up to date) properly installed & shown in LC prefs
  • Besides the default basics installed: Platforms / API 2.2, 4.0.3, 4.4, and anything that could be connected
  • LC versions between 6.7.10 - 8.1 (dp2)
When compiling for Android, "aapt.exe" stops working & "apk preparation failed", no matter if it's an empty stack or whatever.
No logs or such found.

Anybody has an idea how to cure this, or where to look for what?

Thx, have fun!

Re: 'aapt.exe' stops working /[solved]

Posted: Thu Jul 07, 2016 6:39 pm
by AxWald
Hi,

recently I noticed, "en passant", Richard talking about a "GoRevNet" function, hidden in the "Development/ PlugIns" menu. Cool stuff!
Just, with a bit of imagination it would have been possible to hide it even better! 8)

Well, today I stumbled over a headline there from one of those prehistoric email lists:
"android sdk fyi".

For your convenience & education:
Mike Bonner wrote:
I recently started working with android again, and was having trouble
building successfully. aapt.exe would crash every time. If you happen to
run into this, go to the sdk manager and install the build tools 22.01,
then backup the aapt.exe in the most recent build tools (just in case) and
copy the aapt.exe from the 22.01 build tools in to replace it.

A version other than 22.01 might work, but during research of the problem I
ran across mention of that specific version. Unfortunately, I can't seem to
find it again, but hey, it worked!
What should I say? That's it, it works! \o/ \o/ \o/

Have fun!