qt creator android Build Fail build.xml:283: null 返回:1 [英] qt creator android Build Fail build.xml:283: null returned: 1

查看:22
本文介绍了qt creator android Build Fail build.xml:283: null 返回:1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 qt creator 构建一个 android 应用程序,但我遇到了问题.它通常工作得很好,但现在它给了我这个错误:

<块引用>

[dx] 虚拟机初始化期间发生错误
[dx] 无法为 1048576KB 对象堆保留足够的空间

<块引用>

构建失败C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:888:执行此行时出现以下错误:
C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:890:执行此行时出现以下错误:
C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:902:执行此行时出现以下错误:
C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:283: null 返回:1
总时间:4秒
警告:无法在任何导入路径中解析 QML 导入:QtQuick.Controls.impl
警告:无法在任何导入路径中解析 QML 导入:QtQuick.Controls.Material.impl
警告:无法在任何导入路径中解析 QML 导入:QtQuick.Controls.Universal.impl
构建 android 包失败!
-- 有关详细信息,请使用 --verbose 运行此命令.
17:30:23: Le processus
"D:Qt5.8.0_android5.8android_armv7inandroiddeployqt.exe" s'est terminé avec le code 14.
Erreur lors de la compilation/déploiement du projet untitled13(套件:Android for armeabi-v7a(GCC 4.9,Qt 5.8.0))
执行构建 Android APK"步骤时

解决方案

看来你有 apache ant 的问题.

你应该设置

开始构建和运行 Qt Android 示例以确保所有这些都在您的设备上正常工作.

I'm trying to build an android app using qt creator but I have a problem. It usually works just fine but now it give me this error:

[dx] Error occurred during initialization of VM
[dx] Could not reserve enough space for 1048576KB object heap

and

BUILD FAILED C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:888: The following error occurred while executing this line:
C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:890: The following error occurred while executing this line:
C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:902: The following error occurred while executing this line:
C:Program Files (x86)Androidandroid-sdk oolsantuild.xml:283: null returned: 1
Total time: 4 seconds
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
Building the android package failed!
-- For more information, run this command with --verbose.
17:30:23: Le processus
"D:Qt5.8.0_android5.8android_armv7inandroiddeployqt.exe" s'est terminé avec le code 14.
Erreur lors de la compilation/déploiement du projet untitled13 (kit : Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
When executing step "Build Android APK"

解决方案

Seems you have apache ant problem.

you should set SDK, NDK, JDK, apache ant to your Qt Creator.

More information :Getting Started with Qt for Android

download apache ant from here

For start build and run Qt Android examples to make sure all of those are working fine on your device.

这篇关于qt creator android Build Fail build.xml:283: null 返回:1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆