Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误:模块";QtQuick“;在Android上部署qt quick应用程序时出现“未安装”_Android_Qt_Qtquick2 - Fatal编程技术网

错误:模块";QtQuick“;在Android上部署qt quick应用程序时出现“未安装”

错误:模块";QtQuick“;在Android上部署qt quick应用程序时出现“未安装”,android,qt,qtquick2,Android,Qt,Qtquick2,错误:未安装模块“QtQuick”:在Android上部署qt quick应用程序时出现 我使用Qt 5.2.1创建了一个Qt快速应用程序项目,并尝试构建和运行创建的默认项目 你好,专业人士 # Add more folders to ship with the application, here folder_01.source = qml/Hello folder_01.target = qml DEPLOYMENTFOLDERS = folder_01 # Additional impo

错误:未安装模块“QtQuick”:在Android上部署qt quick应用程序时出现

我使用Qt 5.2.1创建了一个Qt快速应用程序项目,并尝试构建和运行创建的默认项目

你好,专业人士

# 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 += \
    resources.qrc
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();
}

这是一个默认的项目,我不知道我哪里出错了。。。有没有人遇到过同样的问题,或者知道如何解决这个问题?

当我使用Qt 5.5.1版本时,问题就解决了。我想Qt已经更新了一些东西


通过浏览中的评论,我想到了更新Qt,它成功了。

听起来像是部署问题。你采取了什么步骤来部署你的应用程序?@MrEricSir:我使用一台64位的windows pc,最初我尝试运行应用程序时,它未能给出错误
BUILD failed D:\Installations\Android\Android SDKs\tools\ant\BUILD.xml:716:执行此行时发生以下错误:D:\Installations\Android\Android SDKs\tools\ant\BUILD.xml:730:找不到javac编译器;com.sun.tools.javac.Main不在类路径上。也许JAVA_HOME没有指向JDK。当前设置为“C:\Program Files\Java\jre1.8.0_65”
。所以我找到了一些帖子,告诉我如何将tools.jar文件复制到jre安装路径。我做到了,部署了
import QtQuick 2.0

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