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. Google Play is rejecting an AAB because it targets API level 30
Qt 6.11 is out! See what's new in the release blog

Google Play is rejecting an AAB because it targets API level 30

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 421 Views 1 Watching
  • 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.
  • LorenDBL Offline
    LorenDBL Offline
    LorenDB
    wrote on last edited by
    #1

    I'm trying to upload an app to the Google Play Console, but every time I upload the .aab, I get this error:

    Your app currently targets API level 30 and must target at least API level 31 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 31.
    

    This seems odd. I've tried:

    • Removing all SDKs below SDK 31 from my system
    • Adding set(QT_ANDROID_MIN_SDK_VERSION 31) to my CMakeLists.txt

    and maybe a few other random things here and there.

    Does anybody have insight on this? I'm building with Qt 6.4.2. I've also had this problem building for multiple Android architectures.

    1 Reply Last reply
    1
    • LorenDBL Offline
      LorenDBL Offline
      LorenDB
      wrote on last edited by
      #2

      I fixed this by doing two things:

      1. Changing set(QT_ANDROID_MIN_SDK_VERSION 31) to set_target_properties(appHeartless PROPERTIES ... QT_ANDROID_TARGET_SDK_VERSION 31)
      2. Adding android:export="true" to the <activity> tag in my Android app manifest.
      1 Reply Last reply
      0
      • LorenDBL LorenDB has marked this topic as solved on

      • Login

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