简体   繁体   English

qt 5.5 android编译错误

[英]qt 5.5 android Compile Error

I've had some experience with Qt but none with android in Qt, I've downloaded: 我对Qt有一些经验,但是对Qt中的android没有任何经验,我已经下载了:

Qt5.5-Android Jdk-1.8 Qt5.5-Android Jdk-1.8

NDK-r14 NDK-R14

ant-1.10 ANT-1.10

SDK r26 SDK r26

and I've given the appropriate addresses to the sections in Tools->Options->Android 并且我已经在“工具”->“选项”->“ Android”中为各部分提供了适当的地址

However, When I create a brand new project, connect my phone (Samsung Galaxy Note 5, with USB Debugging ON) and select armeabi-v7a(GCC 4.9, Qt 5.5.0), I get the following errors in compile time: 但是,当我创建一个全新项目时,连接手机(三星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"

I've been stuck in this for a couple of days now and I appreciate any suggestions, Thank you in advance. 我已经被困在这里几天了,感谢您的建议,谢谢。

Thanks to V-Master I changed my SDK to an older version. 感谢V-Master,我将我的SDK更改为旧版本。 Looks like that ant is removed from new android SDKs... 看起来该蚂蚁已从新的android SDK中删除了...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM