I am trying to port my application to android using qt5.4, but I have this error:
W / Qt (30916): qrc: /qml/FrontEnd.qml: 1 ((null)): qrc: /qml/FrontEnd.qml: 1: 1: the "QtQuick" module is not installed
This is my .pro
TEMPLATE = app
TARGET = sandbox-build-android
QT+= qml quick widgets printsupport xml svg
INCLUDEPATH += [...]
HEADERS += [...]
SOURCES += [...]
RESOURCES += ../sandbox/resources.qrc
LIBS += -L$$PWD/../../edalab/else-datamodel-classes/build-buildAndroid-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_0-Debug/ -lbuildAndroid
INCLUDEPATH += [...]
DEPENDPATH += [...]
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
ANDROID_EXTRA_LIBS = [..]
}
include(deployment.pri)
This is my .pri deployment:
android-no-sdk {
target.path = /data/user/qt
export(target.path)
INSTALLS += target
} else:android {
x86 {
target.path = /libs/x86
} else: armeabi-v7a {
target.path = /libs/armeabi-v7a
} else {
target.path = /libs/armeabi
}
export(target.path)
INSTALLS += target
} else:unix {
isEmpty(target.path) {
qnx {
target.path = /tmp/$${TARGET}/bin
} else {
target.path = /opt/$${TARGET}/bin
}
export(target.path)
}
INSTALLS += target
}
export(INSTALLS)
In my FrontEnd.qml, I have this import:
import QtQuick 2.4
import QtQuick.Controls 1.3
I do not see a significant difference from the .pro sample project that works correctly on Android.
UPDATE
I saw another Calendar example, and I noticed that this OTHER_FILES flag was missing, so I added all the paths of my QML files to it, but the problem persists.
apk , . , apk , apk, :
libqml_Qt_labs_folderlistmodel_libqmlfolderlistmodelplugin.so libqml_Qt_labs_settings_libqmlsettingsplugin.so libqml_QtQml_Models.2_libmodelsplugin.so libqml_QtQml_StateMachine_libqtqmlstatemachine.so libqml_QtQuick.2_libqtquick2plugin.so libqml_QtQuick_Controls_libqtquickcontrolsplugin.so libqml_QtQuick_Controls_Styles_Android_libqtquickcontrolsandroidstyleplugin.so libqml_QtQuick_Dialogs_libdialogplugin.so libqml_QtQuick_Dialogs_Private_libdialogsprivateplugin.so libqml_QtQuick_Layouts_libqquicklayoutsplugin.so libqml_QtQuick_Window.2_libwindowplugin.so
.
βββ Project1
β βββ file.pro
β βββ images
β β βββ ...
β βββ include
β β βββ sub1
β β β βββ file1.hh
β β β βββ sub1.1
β β β βββ file2.hh
β β βββ sub2
β β βββ file3.hh
β βββ qml
β β βββ file1.qml
β β βββ sub1
β β βββ file2.qml
β β βββ sub1.1
β β βββ file3.qml
β βββ README.txt
β βββ resources.qrc
β βββ src
β β βββ sub1
β β β βββ file1.cc
β β β βββ sub1.1
β β β βββ file2.cc
β β βββ sub2
β β β βββ file3.cc
β β βββ Main.cc
β βββ webUtils
β βββ file.html