java.lang.UnsatisfiedLinkError on Android 9 and 10



  • Hey,
    after some struggle I managed to upgrade to QT 5.14 but I am still having problems with crashes on some devices. From Google Play Console I got reported this error:

    java.lang.UnsatisfiedLinkError: 
      at org.qtproject.qt5.android.QtNative.handleOrientationChanged (Native Method)
      at org.qtproject.qt5.android.QtActivityDelegate$4.onDisplayChanged (QtActivityDelegate.java:671)
      at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage (DisplayManagerGlobal.java:1219)
      at android.os.Handler.dispatchMessage (Handler.java:106)
      at android.os.Looper.loop (Looper.java:214)
      at android.app.ActivityThread.main (ActivityThread.java:6986)
      at java.lang.reflect.Method.invoke (Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
      at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1445)
    

    From the statistics it happens on Android 9 and 10 only (while having reports from some people using Android 9 that the app is working fine on their device). The app also works in Android 10 emulator. I am using the QT Creator generated android files, didn't make any changes. Just added these bundle settings to avoid problems with language. In manifest I am targeting API 29, using newest build SDK 29 and 20.1 NDK.

    I am starting to run out of options what else to try. Anybody might have an idea about this? Is that a bug in QT?

    Thanks and have a nice day!

    UPDATE:
    Seems like the problem is generated AAB format. Probably related to this bug.



  • I face this issue too, any help???



  • Check out the bug report. The only solution so far is to upload APK instead of ABB.