Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.14.0
-
Ubuntu 16.04
Qt 5.14.0 android
Android SDK 28
Android NDK 20
OpenJDK 8
Qt Creator 4.11
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
- is duplicated by
-
QTBUG-80894 Android: Multiple qrc files in a subproject break qmlimportscanner
- Closed