'aapt.exe' stops working

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
AxWald
Posts: 578
Joined: Thu Mar 06, 2014 2:57 pm

'aapt.exe' stops working

Post by AxWald » Wed Jul 06, 2016 12:14 pm

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!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!

AxWald
Posts: 578
Joined: Thu Mar 06, 2014 2:57 pm

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

Post by AxWald » Thu Jul 07, 2016 6:39 pm

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!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!

Post Reply