Qt 6.3.0 on Android
Unsolved
Qt 6
-
I have an app that uses C++/QML integration using QML_ELEMENT. The qml files have
import com.mycompany.myapp
and the pro file has
QML_IMPORT_NAME = com.mycompany.myapp QML_IMPORT_MAJOR_VERSION = 1
This works fine under Qt 6.2.4, although the import statement is underlined in red indicating a problem. When I run it under Qt 6.3.0 on Android, I am getting a runtime error
W default : QQmlApplicationEngine failed to load component W default : qrc:/main.qml:3:1: module "com.mycompany.myapp" is not installed
I have the exact same behavior with the "Extending QML - Adding Types Example" https://doc.qt.io/qt-6/qtqml-referenceexamples-adding-example.html. I had to add QT += quick to get it to run on android. With that change it runs fine with Qt 6.2.3, but with 6.3.0 it gives a runtime error
W libadding_arm64-v8a.so: QQmlComponent: Component is not ready W libadding_arm64-v8a.so: QList(qrc:example.qml:52:1: module "People" is not installed W libadding_arm64-v8a.so: import People 1.0 W libadding_arm64-v8a.so: ^) W libadding_arm64-v8a.so: exit app 0
Both apps work fine with 6.3.0 on Windows. Is there something broken with 6.3.0 on Android, or is there something more we have to set up the deployment?