我正在新的Commercial Qt
计算机上全新安装MacOS Sierra
。我正在尝试为android
&建立一个示例Qt应用程序iOS
。我可以毫无困难地构建我的QtApp for iOS。
但在Android上我收到以下错误:
Buildfile: build.xml does not exist!
Build failed
Building the android package failed!
-- For more information, run this command with --verbose.
19:47:50: The process "/Users/MyComputer/Qt/5.7/android_armv7/bin/androiddeployqt" exited with code 14.
Error while building/deploying project t1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.1))
When executing step "Build Android APK"
我已从here下载了最新的ndk r14b
。
我已经在here安装了Android Studio附带的最新sdk。并更新android sdkmanager
以安装从android-19
到android-25
的所有平台。
我也安装了最新的JDK 8。我通过构建&测试了android设置。从Android Studio运行Android应用程序,运行完美。
Qt非常适合与Android合作。发生了什么变化?我应该做一些调整,因为Android有一些结构性的变化吗?
按照建议here&将PathToAndroidStudio/templates
复制到PathToAndroidSDK/templates
或PathToAndroidSDK/tools/templates
here 似乎不够。
除了在其他一些答案中建议复制templates
文件夹外,我还应该做些什么呢?
答案 0 :(得分:1)
您正在尝试使用Ant构建系统。将其更改为使用基于Gradle的版本或查看此处:The ant/ folder is suddenly missing from Android SDK. Did Google remove it?