Qt Android构建失败

h443971798 2016-07-16 12:21:52
BUILD FAILED
D:\Android\android-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.xml:283: null returned: 1

Total time: 2 seconds
Building the android package failed!
-- For more information, run this command with --verbose.
23:52:38: 进程"D:\Qt\Qt5.7.0\5.7\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project Android1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
When executing step "Build Android APK"
23:52:38: Elapsed time: 00:08.


build.xml里面的内容是
<target name="-dex" depends="-compile, -post-compile, -obfuscate">
888行 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping...">
<!-- only convert to dalvik bytecode is *not* a library -->
890行 <do-only-if-not-library elseText="Library project: do not convert bytecode..." >
<!-- special case for instrumented builds: need to use no-locals and need
to pass in the emma jar. -->
<if condition="${build.is.instrumented}">
<then>
<dex-helper nolocals="true">
<external-libs>
<fileset file="${emma.dir}/emma_device.jar" />
</external-libs>
902行 </dex-helper>
</then>
<else>
<dex-helper />
</else>
</if>
</do-only-if-not-library>
</do-only-if-manifest-hasCode>
</target>


<dex executable="${dx}"
output="${intermediate.dex.file}"
dexedlibs="${out.dexed.absolute.dir}"
nolocals="@{nolocals}"
forceJumbo="${dex.force.jumbo}"
disableDexMerger="${dex.disable.merger}"
283行 verbose="${verbose}">
<path path="${out.dex.input.absolute.dir}"/>
<path refid="out.dex.jar.input.ref" />
<external-libs />
</dex>
</sequential>
</macrodef>

有没有大神知道是什么问题的,跪求解决办法了。今天刚搞Qt Android;步骤都是按照网上的来的,其他都可以,就是最后构建工程的时候失败。
...全文
640 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq1334456257 2016-08-21
  • 打赏
  • 举报
回复
我的也是这个问题,但是我的系统是32位的
adfldk 2016-07-29
  • 打赏
  • 举报
回复
挺有讲究。。。
  • 打赏
  • 举报
回复
我之前一直是好好的,突然也出现这个问题了,jdk用多少位的和系统有关吧,我的是win7 32位的环境。
h443971798 2016-07-16
  • 打赏
  • 举报
回复
解决了,原来的JDK是32位的,换成64位的就行了。

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧