Error: module “QtQuick” is not installed in Android



  • I use qt 5.2.1 and created a Qt Quick Application project and tried to build and run the default project created.

    Hello.pro

    # Add more folders to ship with the application, here
    folder_01.source = qml/Hello
    folder_01.target = qml
    DEPLOYMENTFOLDERS = folder_01
    
    # Additional import path used to resolve QML modules in Creator's code model
    QML_IMPORT_PATH =
    
    # The .cpp file which was generated for your project. Feel free to hack it.
    SOURCES += main.cpp
    
    # Installation path
    # target.path =
    
    # Please do not modify the following two lines. Required for deployment.
    include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
    qtcAddDeployment()
    
    RESOURCES +=
    
    ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
    
    OTHER_FILES += \
        android/AndroidManifest.xml
    
    

    main.cpp

    #include <QtGui/QGuiApplication>
    #include "qtquick2applicationviewer.h"
    
    int main(int argc, char *argv[])
    {
        QGuiApplication app(argc, argv);
    
        QtQuick2ApplicationViewer viewer;
        viewer.setMainQmlFile(QStringLiteral("qml/Hello/main.qml"));
        viewer.showExpanded();
    
        return app.exec();
    }
    
    

    main.qml

    import QtQuick 2.0
    
    Rectangle {
        width: 360
        height: 360
        Text {
            text: qsTr("Hello World")
            anchors.centerIn: parent
        }
        MouseArea {
            anchors.fill: parent
            onClicked: {
                Qt.quit();
            }
        }
    }
    
    

    This is a default project and I do not get where I went wrong... Have someone faced same issue or knows how to resolve this?



  • It is solved with Qt 5.5. I do not found this issue in Qt 5.5


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.