Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.15.0 Alpha, 6.8.0
Description
When deploying an example that uses QtQuick.Controls.Styles on Android, this error is produced:
W libqml_location_geojsonviewer_armeabi-v7a.so: file::/android_rcc_bundle/qml/QtQuick/Controls/Styles/Android/qmldir: plugin cannot be loaded for module ":.android_rcc_bundle.qml.QtQuick.Controls.Styles.Android": Module namespace 'QtQuick.Controls.Styles.Android' does not match import URI ':.android_rcc_bundle.qml.QtQuick.Controls.Styles.Android' E libqml_location_geojsonviewer_armeabi-v7a.so: qml: Failed to load Style for MenuBar_QMLTYPE_3(0xe16c6a30) W libqml_location_geojsonviewer_armeabi-v7a.so: qrc:/android_rcc_bundle/qml/QtQuick/Controls/Styles/Android/ApplicationWindowStyle.qml: Type AndroidStyle unavailable W libqml_location_geojsonviewer_armeabi-v7a.so: qrc:/android_rcc_bundle/qml/QtQuick/Controls/Styles/Android/AndroidStyle.qml:44:1: AndroidStyleBase is not a type E libqml_location_geojsonviewer_armeabi-v7a.so: qml: Failed to load Style for ApplicationWindow_QMLTYPE_46(0xe16c6d40)
It seems the function QQmlMetaType::registerPluginTypes() in qqmlmetatype.cpp is given these params:
typeNamespce = "QtQuick.Controls.Styles.Android", and
uri = ":.android_rcc_bundle.qml.QtQuick.Controls.Styles.Android"
But it expects them to be the same, but are not.