我在Qt方面有过一些经验,但没有一个在Qt中使用android,我下载了:
Qt5.5-Android 1.8NDK-R14 ant-1.10SDK 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"我已经被困在这几天了,我感谢你的任何建议,谢谢你提前。
发布于 2017-04-18 18:00:06
多亏了V-Master,我把我的SDK换成了更旧的版本。看起来那只蚂蚁被从新的android SDK中移除了.
https://stackoverflow.com/questions/43459016
复制相似问题