Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. No SDK 30 (Android 11) selection in Target SDK
QtWS25 Last Chance

No SDK 30 (Android 11) selection in Target SDK

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 5 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Augustas
    wrote on 8 Nov 2021, 13:14 last edited by Augustas 11 Aug 2021, 13:16
    #1

    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).
    alt text
    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:
    alt text

    On android studio I can build the app for Android 11 after editing the manifest file manually.

    J K 2 Replies Last reply 8 Nov 2021, 13:22
    0
    • A Augustas
      8 Nov 2021, 13:50

      @J-Hilk I'm using:

      Qt Creator 4.12.1, and building using Qt 5.14.2

      alt text

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 8 Nov 2021, 13:54 last edited by
      #4

      @Augustas you should definitely update that version is 1 1/2 years old, IIRC, thats way before the major changes.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1
      • A Augustas
        8 Nov 2021, 13:14

        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).
        alt text
        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:
        alt text

        On android studio I can build the app for Android 11 after editing the manifest file manually.

        J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 8 Nov 2021, 13:22 last edited by
        #2

        @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


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        A 1 Reply Last reply 8 Nov 2021, 13:50
        0
        • J J.Hilk
          8 Nov 2021, 13:22

          @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

          A Offline
          A Offline
          Augustas
          wrote on 8 Nov 2021, 13:50 last edited by Augustas 11 Aug 2021, 13:50
          #3

          @J-Hilk I'm using:

          Qt Creator 4.12.1, and building using Qt 5.14.2

          alt text

          J 1 Reply Last reply 8 Nov 2021, 13:54
          0
          • A Augustas
            8 Nov 2021, 13:50

            @J-Hilk I'm using:

            Qt Creator 4.12.1, and building using Qt 5.14.2

            alt text

            J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 8 Nov 2021, 13:54 last edited by
            #4

            @Augustas you should definitely update that version is 1 1/2 years old, IIRC, thats way before the major changes.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            1
            • A Augustas
              8 Nov 2021, 13:14

              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).
              alt text
              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:
              alt text

              On android studio I can build the app for Android 11 after editing the manifest file manually.

              K Offline
              K Offline
              KroMignon
              wrote on 8 Nov 2021, 14:19 last edited by
              #5

              @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
              c99accd6-8ba5-4688-b2fd-0925a51e39dd-image.png

              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

              A E 2 Replies Last reply 8 Nov 2021, 14:27
              0
              • K KroMignon
                8 Nov 2021, 14:19

                @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
                c99accd6-8ba5-4688-b2fd-0925a51e39dd-image.png

                A Offline
                A Offline
                Augustas
                wrote on 8 Nov 2021, 14:27 last edited by
                #6

                @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! :)

                1 Reply Last reply
                1
                • K KroMignon
                  8 Nov 2021, 14:19

                  @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
                  c99accd6-8ba5-4688-b2fd-0925a51e39dd-image.png

                  E Offline
                  E Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on 8 Nov 2021, 14:51 last edited by
                  #7

                  @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 !

                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                  5.15 --> 6.8 https://t1p.de/ekkeChecklist
                  QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                  1 Reply Last reply
                  3
                  • C Offline
                    C Offline
                    CellCS
                    wrote on 19 Nov 2021, 22:12 last edited by
                    #8

                    @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.

                    A 1 Reply Last reply 23 Nov 2021, 10:59
                    0
                    • C CellCS
                      19 Nov 2021, 22:12

                      @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.

                      A Offline
                      A Offline
                      Augustas
                      wrote on 23 Nov 2021, 10:59 last edited by
                      #9

                      @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! :)

                      C 1 Reply Last reply 9 Dec 2021, 19:15
                      0
                      • A Augustas
                        23 Nov 2021, 10:59

                        @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! :)

                        C Offline
                        C Offline
                        CellCS
                        wrote on 9 Dec 2021, 19:15 last edited by
                        #10

                        @Augustas Thanks, solved, Here Qt Creator 5.0.3 is key part to solve this issue.

                        And Qt Creator 5.0.3 with qt 5.12.12. If with qt5.15.7, the app can not be built up.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved