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

Attempt to deploy app on Android fails with "library "libQt5Sql.so" not found"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.2
    • Extras: Android
    • None
    • JRE: 1.8.0_152-release-1343-b01 x86_64
      JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
      macOS 10.14.5
      Android SDK tools 26.1.1
      Android Platform Version API 28 rev.6
    • macOS

    Description

      I updated the Android SDK/NDK today, although I don't know if that is related. It's probably r20, but I can't find that anywhere in Android Studio.

      I'm building a fairly simple tutorial exercise from a book (project attached). After applying the patch for bug 76293 (https://bugreports.qt.io/browse/QTBUG-76293), the build succeeds. But attempting to deploy to an Android phone running Android 8.0.0 fails with the following;

      E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
      E AndroidRuntime: Process: org.qtproject.example.gallery_desktop, PID: 20182
      E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libQt5Sql.so" not found
      E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:928)
      E AndroidRuntime: at java.lang.System.load(System.java:1621)
      E AndroidRuntime: at org.qtproject.qt5.android.QtNative$4.run(QtNative.java:259)
      E AndroidRuntime: at org.qtproject.qt5.android.QtThread$2.run(QtThread.java:87)
      E AndroidRuntime: at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
      E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ghs Gavin Stokes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes