[Qt5.12.4][Android Warning Error] Map Viewer (QML) not work on Android
-
Hi!
I have installed Qt 5.12.4 for Windows.
My environment is Qt Creator 4.9.1 (Enterprise)
SDK Version: 26.1.1, Android SDK: API 28, NDK Version:19.2.5345600
It works well on Desktop Qt 5.12.4 MinGW 32-bit kit,
but didn't show map on Android for armeabi-v7a(Clang Qt 5.12.4 for Android ARMv7)
When run on Android, a lot of Warning and Error below will output and the map didn't show at all.
I'm a beginner of Qt and Android developing.
I've been working on this a lot of time, but without any process.
Does anyone know how to fix this?
Thank you.
I zygote64: Late-enabling -Xcheck:jni
I zygote64: Do partial code cache collection, code=30KB, data=21KB
I zygote64: After code cache collection, code=30KB, data=21KB
I zygote64: Increasing code cache capacity to 128KB
W System : ClassLoader referenced unknown path:
I QtCore : Start
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Concurrent.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Positioning.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5PositioningQuick.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Location.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Widgets.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5OpenGL.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Sql.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5RemoteObjects.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x80
I Qt : qt started
I Qt JAVA : Can't find '/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/lib/libQt5QuickParticles.so'
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/position/libqtposition_android.so" has unsupported flags DT_FLAGS_1=0x80
I QtPositioning: Positioning start
D OpenGLRenderer: HWUI GL Pipeline
I zygote64: Do partial code cache collection, code=61KB, data=41KB
I zygote64: After code cache collection, code=60KB, data=41KB
I zygote64: Increasing code cache capacity to 256KB
I zygote64: Compiler allocated 5MB to compile org.json.JSONObject org.qtproject.qt5.android.ExtractStyle.extractTextAppearanceInformations(java.lang.String, java.lang.String, android.util.AttributeSet, int)
I zygote64: Do full code cache collection, code=120KB, data=87KB
I zygote64: After code cache collection, code=91KB, data=59KB
I zygote64: Do partial code cache collection, code=124KB, data=79KB
I zygote64: After code cache collection, code=124KB, data=79KB
I zygote64: Increasing code cache capacity to 512KB
E linker : normalize_path - invalid input: "C", the input path should be absolute
W linker : Warning: unable to normalize "C"
E linker : normalize_path - invalid input: "C", the input path should be absolute
W linker : Warning: unable to normalize "C"
I Adreno : QUALCOMM build : 8e59954, I0be83d0d26
I Adreno : Build Date : 09/22/17
I Adreno : OpenGL ES Shader Compiler Version: EV031.21.02.00
I Adreno : Local Branch : O17A
I Adreno : Remote Branch :
I Adreno : Remote Branch :
I Adreno : Reconstruct Branch :
D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8994.so from current namespace instead of sphal namespace.
I Adreno : PFP: 0x00000000, ME: 0x00000000
I zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2
D vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8994.so from current namespace instead of sphal namespace.
I zygote64: Compiler allocated 7MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
E linker : library "/system/lib/libcrypto.so" ("/system/lib/libcrypto.so") needed or dlopened by "/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64/libQt5Core.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/lib/arm64:/data/app/org.qtproject.example.qml_location_mapviewer-EStuXHu7_Q9367VSDU4lFg==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/org.qtproject.example.qml_location_mapviewer"]
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Controls/libqtquickcontrolsplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtLocation/libdeclarative_location.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtPositioning/libdeclarative_positioning.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Layouts/libqquicklayoutsplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/qml/QtQuick/Controls/Styles/Android/libqtquickcontrolsandroidstyleplugin.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqgif.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqicns.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqico.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqjpeg.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqtga.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqtiff.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqwbmp.so" has unsupported flags DT_FLAGS_1=0x80
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/imageformats/libqwebp.so" has unsupported flags DT_FLAGS_1=0x80
W libqml_location_mapviewer.so: qrc:/mapviewer.qml:434:17: Unable to assign [undefined] to bool
W System.err: java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
W System.err: at android.os.Parcel.readException(Parcel.java:2013)
W System.err: at android.os.Parcel.readException(Parcel.java:1959)
W System.err: at android.location.ILocationManager$Stub$Proxy.getLastLocation(ILocationManager.java:802)
W System.err: at android.location.LocationManager.getLastKnownLocation(LocationManager.java:1206)
W System.err: at org.qtproject.qt5.android.positioning.QtPositioning.lastKnownPosition(QtPositioning.java:141)
W System.err: at org.qtproject.qt5.android.QtNative.startQtApplication(Native Method)
W System.err: at org.qtproject.qt5.android.QtNative$7.run(QtNative.java:374)
W System.err: at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
W System.err: at java.lang.Thread.run(Thread.java:764)
W libqml_location_mapviewer.so: qrc:/mapviewer.qml:434: ReferenceError: activeMapType is not defined
W linker : "/data/data/org.qtproject.example.qml_location_mapviewer/qt-reserved-files/plugins/geoservices/libqtgeoservices_osm.so" has unsupported flags DT_FLAGS_1=0x80
W libqml_location_mapviewer.so: qrc:/mapviewer.qml:434: ReferenceError: activeMapType is not defined
W libqml_location_mapviewer.so: QGeoTileProviderOsm: Tileserver disabled at QUrl("http://maps-redirect.qt.io/osm/5.8/satellite")
W libqml_location_mapviewer.so: QGeoTileFetcherOsm: all providers resolved
W libqml_location_mapviewer.so: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
I chatty : uid=10081(org.qtproject.example.qml_location_mapviewer) QNetworkAccessM identical 13 lines
W libqml_location_mapviewer.so: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
-
Hey,
I got exactly the same error. Tried iOS and Desktop, but no errors, only with every android kit.
I have tested every Qt version on Linux and Mac since 5.12.3 up to the current version, but the problem persists.
My environment is latest Qt Creator 4.10.2.
JAVA_VERSION 1.8.0_202
SDK Version: 26.1.1, Android SDK: API 29, NDK Version:20.0.5594570