Attempt to deploy on Android fails with "library 'libQt5Sql.so' not found"
-
Today I updated the Android environment on my Mac, but I don't know if that's related. It's probably at "r20," although I can't find any such moniker anywhere.
I'm using Qt 5.12.2 and Qt Creator 4.9.0.
I'm trying to deploy a simple tutorial app that accompanies a book, and although it builds successfully, an attempt to run it on a phone with Android 8.0.0 fails with:
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)
And ideas? I have almost no Android experience. Thanks for any insight!
-
@Stokestack said in Attempt to deploy on Android fails with "library 'libQt5Sql.so' not found":
Today I updated the Android environment on my Mac, but I don't know if that's related. It's probably at "r20,"
Maybe, google does not care overly much about backwards compatibility .
you can check in your settings
I'm using - as you can see - 18b And I always follow the - don't fix if it ain't broken - philosophySo that ndk is staying for a while ;-)
Did you do a complete rebuild (clean, qmake, rebuild) after updating?
-
@Stokestack said in Attempt to deploy on Android fails with "library 'libQt5Sql.so' not found":
Why isn't this done as a normal part of the build process?
because you normally don't need too.
It's only needed, when you change stuff inside your *pro file, when you modify your qrc files or, in your case, when you actually change your tool set
Don't forget to set the topic to solved, if your issue is indeed solved ;-)