簡體   English   中英

如何在調試模式下將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(又名Android 2.3.3)。

當我運行Debug-> Start Debugging然后在我的物理設備和模擬器上選擇armeabiarmeabi-v7a時,Qt神秘地繼續以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 --jdk C:/jdk1.8.0_05 --ant C:/eclipse/plugins/org.apache.ant_1.9.2.v201404171502/bin/ant.bat "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版本?

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的選項。 只需選擇適當的Android API版本即可。

另外要創建APK包,請在APK選項中選擇Bundle Qt庫

在此輸入圖像描述

您還可以選擇“ 創建模板”以創建清單文件,以設置應用程序設置,如圖標,名稱,...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM