SDL: SDL3 Android Studio build broken: No implementation found [...] nativeGetVersion()

Something has broken the native links in SDL3 when using Android Studio. I’ve no idea what I’m looking at really, but I followed the instructions to create a fresh new basic project and the same happens.

12:56:15.127  E  FATAL EXCEPTION: SDLActivity
                 Process: org.libsdl.app, PID: 28789
                 java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String org.libsdl.app.SDLActivity.nativeGetVersion() (tried Java_org_libsdl_app_SDLActivity_nativeGetVersion and Java_org_libsdl_app_SDLActivity_nativeGetVersion__)
                 	at org.libsdl.app.SDLActivity.nativeGetVersion(Native Method)
                 	at org.libsdl.app.SDLActivity.onCreate(SDLActivity.java:352)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 26 (23 by maintainers)

Most upvoted comments

So I may have fixed this with 21a1508ce. Android.mk now uses a version script to list the exported symbols in the library, and I accidentally removed JNI_OnLoad(). Before this commit I was getting unsatisified link errors when the SDL library was present, and now my SDL3 Android application is working correctly.

@AntTheAlchemist, does this fix it for you?

@AntTheAlchemist, I’ll take a look next week.