hello-sdl2-android icon indicating copy to clipboard operation
hello-sdl2-android copied to clipboard

./gradlew assembleDebug failed for task ':app:externalNativeBuildDebug'

Open lambsteak opened this issue 6 years ago • 1 comments

Hi. I was trying to compile your project and when running gradlew I ran into this error:

Execution failed for task ':app:externalNativeBuildDebug'.

Build command failed. Error while executing process /home/user/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /home/user/gamedev_android/hello-sdl2-android/android/app/.externalNativeBuild/cmake/debug/armeabi-v7a --target main} ninja: error: '../../../../../distribution/android/SDL2/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libSDL2.so', needed by '../../../../../distribution/android/app/intermediates/cmake/debug/obj/armeabi-v7a/libmain.so', missing and no known rule to make it

lambsteak avatar Dec 01 '18 12:12 lambsteak

Hello, sorry for getting back to you so late, but if this still happening, would you have some info about which SDK version and which build tools version you have? The only way I was able to get this error was by commenting out the line compile project(':SDL2') in android/app/build.gradle. I'm not sure what causes SDL not to be built. Are you using the command line, or Android Studio? Are you on Linux?

pvallet avatar Jan 23 '20 18:01 pvallet