Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141461

UnsatisfiedLinkError exception for missing Android ABI in QtLoader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.2
    • QPA: Android
    • None
    • Android

      We package our AAR with different ABIs (armeabi-v7a, arm64-v8a, x86_64) to also allow usage of an Android Emulator. If it is run in an x86 Emulator, we get the exception shown below as there is no suitable library for this ABI.

      As we provide this AAR publicly, we cannot control what actual App Developer do with it and they might as well run it in an Emulator that is not supported by the AAR (or Qt for that matter).

      Should the exception be caught in some way to avoid the application's crash?

      2025-10-23 11:26:48.522  6108-6140  AndroidRuntime          com...kus.ausweisapp.tester.wrapper  E  FATAL EXCEPTION: qtMainLoopThread
                                                                                                          Process: com.governikus.ausweisapp.tester.wrapper:ausweisapp2_service, PID: 6108
                                                                                                          java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.governikus.ausweisapp.tester.wrapper-mDNQt1e1cJBYbbgkiyH14Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.governikus.ausweisapp.tester.wrapper-mDNQt1e1cJBYbbgkiyH14Q==/lib/x86, /system/lib, /system/product/lib]]] couldn't find "libAusweisApp_null.so"
                                                                                                              at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
                                                                                                              at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
                                                                                                              at java.lang.System.loadLibrary(System.java:1667)
                                                                                                              at org.qtproject.qt.android.QtLoader.loadLibraryHelper(QtLoader.java:486)
                                                                                                              at org.qtproject.qt.android.QtLoader.lambda$loadMainLibrary$0$org-qtproject-qt-android-QtLoader(QtLoader.java:535)
                                                                                                              at org.qtproject.qt.android.QtLoader$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
                                                                                                              at org.qtproject.qt.android.QtThread.lambda$run$0(QtThread.java:57)
                                                                                                              at org.qtproject.qt.android.QtThread$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
                                                                                                              at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25)
                                                                                                              at java.lang.Thread.run(Thread.java:919)
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtandroidteam Qt Android Team
            janmoeller Jan Möller
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes