No SDK 30 (Android 11) selection in Target SDK
-
Hello,
I'm trying to build my Qt app for android, but I can't build it for android 11 (can't select target SDK 30).
When I open the AndroidManifest.xml, there's no Android 11 option (Android 10 max).
If I edit the manifest manually and set target SDK to 30, after building it still gets set to 29 (checked with apktool.jar)Here's my settings pic:
On android studio I can build the app for Android 11 after editing the manifest file manually.
-
Hello,
I'm trying to build my Qt app for android, but I can't build it for android 11 (can't select target SDK 30).
When I open the AndroidManifest.xml, there's no Android 11 option (Android 10 max).
If I edit the manifest manually and set target SDK to 30, after building it still gets set to 29 (checked with apktool.jar)Here's my settings pic:
On android studio I can build the app for Android 11 after editing the manifest file manually.
-
@Augustas what version of QtCreator and Qt are you using ?
there were some major changes in both IDE and toolchain/framework so that the Android App Bundle stuff was supported
-
Hello,
I'm trying to build my Qt app for android, but I can't build it for android 11 (can't select target SDK 30).
When I open the AndroidManifest.xml, there's no Android 11 option (Android 10 max).
If I edit the manifest manually and set target SDK to 30, after building it still gets set to 29 (checked with apktool.jar)Here's my settings pic:
On android studio I can build the app for Android 11 after editing the manifest file manually.
@Augustas said in No SDK 30 (Android 11) selection in Target SDK:
On android studio I can build the app for Android 11 after editing the manifest file manually.
Why do you want to target Android 11?
Doing so, your app will not be able to work on older device.If you want to force Android11 / API Level 30, why not edit the manifest by hand: right click on
AndroidManifest.xml
and select Open with/Plain Text Editor
-
@Augustas said in No SDK 30 (Android 11) selection in Target SDK:
On android studio I can build the app for Android 11 after editing the manifest file manually.
Why do you want to target Android 11?
Doing so, your app will not be able to work on older device.If you want to force Android11 / API Level 30, why not edit the manifest by hand: right click on
AndroidManifest.xml
and select Open with/Plain Text Editor
@KroMignon Hello, thank you for the suggestions.
I'm producing an app, that is uploaded to google play, and from November 1st, it is required that your app targets at least SDK 30 (Android 11).
As mentioned before, I've tried to edit the manifest file directly, but the app would be built with 29 SDK (checked with apktool.jar).@J-Hilk that seems to fix the issue. I can now build for android 11 using Qt Creator 5.0.3. Thank you! :)
-
@Augustas said in No SDK 30 (Android 11) selection in Target SDK:
On android studio I can build the app for Android 11 after editing the manifest file manually.
Why do you want to target Android 11?
Doing so, your app will not be able to work on older device.If you want to force Android11 / API Level 30, why not edit the manifest by hand: right click on
AndroidManifest.xml
and select Open with/Plain Text Editor
@KroMignon editin the Manifest to set MIN and TARGET SDK won't work anymore. Google has changed this.
you have to set it inside your .pro:
per ex.ANDROID_MIN_SDK_VERSION = "21" ANDROID_TARGET_SDK_VERSION="30"
then QtCreator will update Android Settings inside gradle.properties
Attention: you need actual QtCreator and have to update Templates ! -
@Augustas Hi, I also meet this issue, and could build build target SDK 30 by manually set in <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/> in AndriodMnifest.xml , but APK shows some issues in Android 11 and 12, works well in <= Android 10.
May I ask the method that you solved this issue about set targetSdkVersion as 30? thanks a lot.
My current env is. QT Creator 4.13.2, QT 5.12.4.
Thanks a lot.
-
@Augustas Hi, I also meet this issue, and could build build target SDK 30 by manually set in <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/> in AndriodMnifest.xml , but APK shows some issues in Android 11 and 12, works well in <= Android 10.
May I ask the method that you solved this issue about set targetSdkVersion as 30? thanks a lot.
My current env is. QT Creator 4.13.2, QT 5.12.4.
Thanks a lot.
@CellCS Hi, please read the thread.
there were some major changes in both IDE and toolchain/framework so that the Android App Bundle stuff was supported
@Augustas you should definitely update that version is 1 1/2 years old, IIRC, thats way before the major changes.
@J-Hilk that seems to fix the issue. I can now build for android 11 using Qt Creator 5.0.3. Thank you! :)
-
@CellCS Hi, please read the thread.
there were some major changes in both IDE and toolchain/framework so that the Android App Bundle stuff was supported
@Augustas you should definitely update that version is 1 1/2 years old, IIRC, thats way before the major changes.
@J-Hilk that seems to fix the issue. I can now build for android 11 using Qt Creator 5.0.3. Thank you! :)