Qt Android构建失败
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;步骤都是按照网上的来的,其他都可以,就是最后构建工程的时候失败。