I’ve updated Android Studio to the latest version (4.0.1) and updated SDL to 2.0.12 and the latest SDL2_image, TTF and Mixer, but when I try and run my Android apps on the simulator they install but fail to start, or even hit the breakpoint I’ve set on my main() function. They all used to work with SDL 2.0.8 and Android Studio 3 so I’m not sure what I’ve overlooked in my updating. From the Run pane I get a lot of text but this seems to be the key to where it fails:
Failed to register native method org.libsdl.app.SDLActivity.nativeSetScreenResolution(IIIIIF)V in /data/app/com.windowsgames.moab-F65QwY01086qlCKiAGJjHA==/base.apk
E/SDL: Failed to register methods of org/libsdl/app/SDLActivity
A/zygote: java_vm_ext.cc:534] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NoSuchMethodError: no static or non-static method “Lorg/libsdl/app/SDLActivity;.nativeSetScreenResolution(IIIIIF)V”
and at the end of all the text is:
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 8059 (ndowsgames.moab), pid 8059 (ndowsgames.moab)
Any help would be much appreciated!