我对Qt有过一些经验但在Qt中没有使用android的经验, 我已下载:
Qt5.5功能的Android Jdk-1.8
NDK-r14
ant-1.10
SDK r26
我已经在工具 - >选项 - > Android
中的相应部分给出了相应的地址然而,当我创建一个全新的项目时,连接我的手机(三星Galaxy Note 5,打开USB调试)并选择armeabi-v7a(GCC 4.9,Qt 5.5.0),我在编译时遇到以下错误:
Files/Java/jdk1.8.0_121" --ant C:/Users/Vahid/Downloads/Compressed/apache-ant-1.9.6-bin/apache-ant-1.9.6/bin/ant.bat
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
Generating Android Package
Input file: C:/Users/Vahid/Documents/build-TestAndroid5-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0_c097e4-Debug/android-libTestAndroid5.so-deployment-settings.json
Output directory: C:/Users/Vahid/Documents/build-TestAndroid5-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0_c097e4-Debug/android-build/
Application binary: C:/Users/Vahid/Documents/build-TestAndroid5-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0_c097e4-Debug/libTestAndroid5.so
Android build platform: android-25
Install to device: No
Buildfile: build.xml does not exist!
Build failed
Building the android package failed!
-- For more information, run this command with --verbose.
00:43:15: The process "C:\Qt\Qt5.5.0\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 14.
Error while building/deploying project TestAndroid5 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
When executing step "Build Android APK"
我已经被困在这几天了,我很感激任何建议,谢谢你。
答案 0 :(得分:0)
感谢V-Master我将SDK更改为旧版本。 看起来ant已从新的Android SDK中移除......