如何在调试模式下将Qt Creator中的--android-platform更改为不是android--1? [英] How can I change the --android-platform in Qt Creator to not be android--1 in debug mode?

查看:361
本文介绍了如何在调试模式下将Qt Creator中的--android-platform更改为不是android--1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to run a new Qt Quick application on my android device through Qt Creator. However, Qt Creator keeps using Android API version 1 whereas I would like it to target an Android API version 10 ( aka Android 2.3.3).

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

When I run Debug->Start Debugging and then select either an armeabi or armeabi-v7a on my physical device and emulators, Qt mysteriously continues to target android--1:

"C:\Qt\5.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-platform android--1 --jdk C:/jdk1.8.0_05 --ant C:/eclipse/plugins/org.apache.ant_1.9.2.v201404171502/bin/ant.bat

在调试时如何将我的项目配置为针对其他android版本?

How can I configure my project to target a different android version when debugging?

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部署到我的设备上确实可行.我只是希望调试模式能够正常工作.

FYI, deploying a release-mode APK to my device does work. I'm just hoping to get debug-mode working.

推荐答案

您应转到项目>构建Android APK>详细信息,以配置部署设置.有一个名为 Android Build SDK 的选项.只需选择适当的Android API版本即可.

You should go to Projects > Build Android APK > Details for configuring deployment settings. There is an option named Android Build SDK. Just select the appropriate Android API version.

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

Also 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 Creator中的--android-platform更改为不是android--1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆