Android Ant BUILD FAILED when [aapt] Generating resource IDs

Firstly, sorry for my posts about issues I’m having with SDL2 on Android. I’ve spent hundreds of hours trying to solve them with no luck yet.

Others aren’t experiencing the same problems I’m having (such as physical arrow keys disabling when opening joysticks). So i’ve decided to go back to basics and start from scratch with my Android SDL2 environment. I’ve updated everything to the latest versions and always hit this same problem when following the steps to set up the Android build environment.

ant debug install fails at [aapt] Generating resource IDs…

Code:

[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…

BUILD FAILED
F:\AndroidDev\SDK\tools\ant\build.xml:649: The following error occurred while ex
ecuting this line:
F:\AndroidDev\SDK\tools\ant\build.xml:694: null returned: -1073741795

The only way I have found to fix this is to roll back Android SDK Build-tools to version 20. Once I do this, the apk successfully builds, installs and runs on my android devices. But I get the problem with arrow key events breaking when I open joysticks. I doubt that the Built-tools version would affect this bug? But it’s the only thing that I’m doing different to others.

Anyone have any thoughts?

Can you maybe post the full code? If it compiles on linux, I could give it
a try and might be able to help you.On Sat, Dec 5, 2015 at 12:37 PM, AntTheAlchemist wrote:

Firstly, sorry for my posts about issues I’m having with SDL2 on Android.
I’ve spent hundreds of hours trying to solve them with no luck yet.

Others aren’t experiencing the same problems I’m having (such as physical
arrow keys disabling when opening joysticks). So i’ve decided to go back to
basics and start from scratch with my Android SDL2 environment. I’ve
updated everything to the latest versions and always hit this same problem
when following the steps to set up the Android build environment.

ant debug install fails at [aapt] Generating resource IDs…

Code:

[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…

BUILD FAILED
F:\AndroidDev\SDK\tools\ant\build.xml:649: The following error occurred
while ex
ecuting this line:
F:\AndroidDev\SDK\tools\ant\build.xml:694: null returned: -1073741795

The only way I have found to fix this is to roll back Android SDK
Build-tools to version 20. Once I do this, the apk successfully builds,
installs and runs on my android devices. But I get the problem with arrow
key events breaking when I open joysticks. I doubt that the Built-tools
version would affect this bug? But it’s the only thing that I’m doing
different to others.

Anyone have any thoughts?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://www.caveproductions.org

Sure:

Code:

#include <SDL.h>

int main(int argc, char *argv[]) {
exit(0);
}

It compiles no problem. It’s the ant build that fails, but only on build versions beyond 20. I’ve worked out the problem. Build-tools versions beyond 20 aren’t compatible with 32-bit Windows XP, it seems. Who knew!