如何将 Qt Creator 中的 --android-platform 更改为调试模式下的 android--1?

How can I change the --android-platform in Qt Creator to not be android--1 in debug mode?

我正在尝试通过 Qt Creator 运行 在我的 android 设备上创建一个新的 Qt Quick 应用程序。但是,Qt Creator 继续使用 Android API 版本 1 而我希望它以 Android API 版本 10(又名Android2.3.3)。

当我 运行 Debug->Start Debugging 然后 select 在我的物理设备和模拟器上 armeabiarmeabi-v7a 时,Qt 神秘地继续瞄准 android--1:

"C:\Qt.4\android_armv5\bin\androiddeployqt.exe" --input C:/dev/qc/build-qc_mobile-Android_for_armeabi_GCC_4_9_Qt_5_4_0-Debug/android-libqc_mobile.so-deployment-settings.json --output C:/dev/qc/build-qc_mobile-Android_for_armeabi_GCC_4_9_Qt_5_4_0-Debug/android-build --deployment bundled --android-platformandroid--1--jdk C:/jdk1.8.0_05 --ant C:/eclipse/plugins/org.apache.ant_1.9.2.v201404171502/bin/ant.bat

如何配置我的项目以在调试时针对不同的 android 版本?

My Qt creator instance is:
Qt Creator 3.3.0 (opensource)
Based on Qt 5.4.0 (MSVC 2010, 32 bit)

Built on Dec 8 2014 at 15:24:21

From revision d36c4d87db

仅供参考,将发布模式 APK 部署到我的设备确实有效。我只是希望调试模式能正常工作。

您应该转到 项目 > 构建 Android APK > 详细信息 以配置部署设置。有一个名为 Android Build SDK 的选项。只是 select 合适的 Android API 版本。

还要创建一个 APK 包,select 在 APK 中捆绑 Qt 库 选项:

您还可以select创建模板创建清单文件来设置应用程序设置,如图标、名称、...