Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
Qt Creator 10.0.0
-
None
-
macOS Ventura 13.1
Qt 6.5.0
Qt Creator 10.0.0
-
-
850f1ce66 (10.0)
Description
When configuring a CMake project with an Android kit, Qt Creator automatically sets the ANDROID_PLATFORM variable to (what I assume is) the lowest version supported by the selected NDK. (In my case, that's "android-23" for NDK 23.2.)
Very often, I need to switch to a different platform version, such as "android-31". I tried to permanently make this part of the Android kit's settings but couldn't get it to work. Setting the ANDROID_PLATFORM variable there does not have any effect.
Steps to reproduce:
- In the Qt Creator preferences, edit the "CMake Configuration" of the Android kit of choice. There add the line "ANDROID_PLATFORM:STRING=android-31".
- Open a new / not yet configured CMake project (for example created by Qt Creator via "New project") and select bespoke Android kit. Click "Configure project".
- Inspect the CMake configure log in "7 General messages" in the bottom bar.
Expected result: The log mentions that Android API 31 is targeted.
Observed result:
- The log mentions: "Android: Targeting API '23' ..."
- Furthermore, the "Initial Configuration" in the project settings reports two instances of the ANDROID_PLATFORM variable:
Attachments
Issue Links
- relates to
-
QTCREATORBUG-28624 ANDROID_PLATFORM (API Level) is not set
- Closed