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

QtQuick.Controls.Styles not loading on Android

    XMLWordPrintable

Details

    • Android

    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.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes