无法在 Qt Creator 中构建 Android APK [英] Unable to build Android APK in Qt Creator
问题描述
我正在尝试在 Qt Creator 3.0.1 中构建一个 android APK.我已经正确地给出了配置的 Android SDK、NDK、Ant、Java Jdk.在 Build 下的 Build Android APK 步骤中,有一个选项可以指定 Android Build SDK,即目标 SDK.我目前正在使用 API 21,但我没有在此处指定它的选项.
I am trying to build an android APK in Qt Creator 3.0.1 . I have properly given the configured Android SDK, NDK, Ant, Java Jdk. In Build Android APK step under Build there is a option to specify Android Build SDK i.e target SDK. I am currenty using API 21 but it i am not getting an option to specify it over there.
请帮助我该怎么做.
推荐答案
首先你应该选择Tools > Options > Android来添加Android NDK和SDK的路径:
First you should select Tools > Options > Android to add paths to the Android NDK and SDK :
同时选择自动为 Android 工具链创建工具包选项.
要配置部署设置,您应该转到 Projects > Build Android APK > Details 从 Qt 5.4 和 QtCreator 3.3.0 开始.要创建 APK 包,请选择 Bundle Qt library in APK 选项:
For configuring deployment settings you should go to Projects > Build Android APK > Details Since Qt 5.4 along with QtCreator 3.3.0. To create an APK package, select the Bundle Qt libraries in APK option :
您还可以选择创建模板来创建清单文件以设置应用程序设置,例如图标、名称、...
You can also select Create Templates to create the manifest file to set application settings like icon, name, ...
在以前版本的 Qt 和 Qt Creator 中,您应该转到 Projects->Run->Deploy.
In previous versions of Qt and Qt Creator you should go to Projects->Run->Deploy.
我建议您使用最新版本的 Qt 和 Qt Creator 进行 Android 开发和部署.
I recommend you to use the latest version of Qt and Qt Creator for Android development and deployment.
这篇关于无法在 Qt Creator 中构建 Android APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!