qt创建者android Build失败build.xml:283:返回null:1 [英] qt creator android Build Fail build.xml:283: null returned: 1

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

问题描述

我正在尝试使用qt Creator创建一个android应用,但是我遇到了问题。通常它可以正常工作,但现在却给我这个错误:


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




< blockquote>

构建失败
C:\Program Files(x86)\Android\android-sdk\tools\ant\build.xml:888:发生以下错误执行此行时:

C:\Program Files(x86)\Android\android-sdk\tools\ant\build.xml:890:执行此行时发生以下错误行:

C:\Program Files(x86)\Android\android-sdk\tools\ant\build.xml:902:执行此行时发生以下错误:< br>
C:\Program Files(x86)\Android\android-sdk\tools\ant\build.xml:283:返回null:1

总时间:4秒

警告:在任何导入路径中都无法解析QML导入:QtQuick.Controls.impl

警告:QML导入c无法在任何导入路径中解析:QtQuick.Controls.Material.impl

警告:QML导入在任何导入路径中均无法解析:QtQuick.Controls.Universal.impl

构建android软件包失败!

-有关更多信息,请使用--verbose运行此命令。

17:30:23:进程
D:\Qt5.8.0_android\5.8\android_armv7\bin\androiddeployqt.exe的最常用终端代码14。

编译/部署证书无标题13(套件:适用于armeabi-v7a的Android(GCC 4.9,Qt 5.8.0))

执行步骤构建Android APK时



解决方案

似乎您有apant 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)\Android\android-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.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_android\5.8\android_armv7\bin\androiddeployqt.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创建者android Build失败build.xml:283:返回null:1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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