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

QQmlApplicationEngine fails to load component on Android when adding non-qml files to resource

    XMLWordPrintable

Details

    • Android

    Description

      Using Qt 5.14.0 when resource includes only .qml files everything is ok and QQmlApplicationEngine successfully loads main.qml on Android. But if I add a non-qml file to resource like a json or any other types of files to resource, running the app on Android gives this error:

      W/libsample_armeabi-v7a.so(26995): QQmlApplicationEngine failed to load component
      W/libsample_armeabi-v7a.so(26995): qrc:/main.qml:2 module "QtQuick.Controls" is not installed
      W/libsample_armeabi-v7a.so(26995): qrc:/main.qml:1 module "QtQuick" is not installed
      W/libsample_armeabi-v7a.so(26995): qrc:/main.qml:2 module "QtQuick.Controls" is not installed
      W/libsample_armeabi-v7a.so(26995): qrc:/main.qml:1 module "QtQuick" is not installed

      If I comment the line related to non-qml file in resource and run the app again, the problem disappears.

      This problem does not occur on Windows and Linux. I have added a sample project in the attachment that reproduces the error.

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              nejatafshar Nejat Afshar
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes