Android Gradle / SDL2.0.8 issue


#1

I’m in the process of upgrading from the Android ant build process to newer gradle based one. Everything has been straightforward (ndk-build is good), until I hit an ambiguous issue with gradle.

I am attempting to just build armeabi-v7a to keep compile times down.

Not sure if the CreateProcess failures is an indication of the problem.

The only sorta useful feedback is: Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one architecture definitions. Found: ‘’

gradlew installDebug
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:incrementalDebugJavaCompilationSafeguard
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Stinger\cogbuild\test\sdl\testSDL.build\android-debug\testSDL\app\src\main\java\org\libsdl\app\SDLActivity.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:generateJsonModelDebug
process_begin: CreateProcess(NULL, "", ...) failed.
C:/Android/SDK/ndk-bundle/build//../build/core/init.mk:537: *** Android NDK: Aborting...    .  Stop.
process_begin: CreateProcess(NULL, "", ...) failed.
process_begin: CreateProcess(NULL, "", ...) failed.
process_begin: CreateProcess(NULL, "", ...) failed.
process_begin: CreateProcess(NULL, "", ...) failed.
process_begin: CreateProcess(NULL, "", ...) failed.
C:/Android/SDK/ndk-bundle/build//../build/core/init.mk:537: *** Android NDK: Aborting...    .  Stop.
process_begin: CreateProcess(NULL, "", ...) failed.
C:/Android/SDK/ndk-bundle/build//../build/core/init.mk:537: *** Android NDK: Aborting...    .  Stop.
:app:generateJsonModelDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:generateJsonModelDebug'.
> Build command failed.
Error while executing process C:\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Stinger\cogbuild\test\sdl\testSDL.build\android-debug\testSDL\app\jni\Android.mk NDK_APPLICATION_MK=C:\Stinger\cogbuild\test\sdl\testSDL.build\android-debug\testSDL\app\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=C:/Stinger/cogbuild/test/sdl/testSDL.build/android-debug/testSDL/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:\Stinger\cogbuild\test\sdl\testSDL.build\android-debug\testSDL\app\build\intermediates\ndkBuild\debug\lib APP_PLATFORM=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one architecture definitions. Found: ''
process_begin: CreateProcess(NULL, "", ...) failed.
C:/Android/SDK/ndk-bundle/build//../build/core/init.mk:537: *** Android NDK: Aborting...    .  Stop.

#2

I had the same issue and found a fix on Stack Overflow.