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. Android app cannot be published due to targetSdkVersion

Android app cannot be published due to targetSdkVersion

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.4k 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.
  • D Offline
    D Offline
    Devoo
    wrote on last edited by
    #1

    Hi,
    I want to publish my app in Google Play that returns one error message:
    "Your app currently targets API level 28 and must target at least API level 29 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 29."

    In 'Projects' -> 'Build' -> 'Build Android Apk'
    I have selected 'Android Build SDK' to 'android-29'.

    Content of gradle.properties in build directory:

    androidCompileSdkVersion=29
    qtMinSdkVersion=21
    qtTargetSdkVersion=28
    android.bundle.enableUncompressedNativeLibs=false
    androidBuildToolsVersion=
    buildDir=build
    qt5AndroidDir=E:/IT/Qt5.13/5.15.1/android/src/android/java
    

    I have no idea what I am doing wrong...

    Any idea?

    sierdzioS 1 Reply Last reply
    0
    • D Devoo

      Hi,
      I want to publish my app in Google Play that returns one error message:
      "Your app currently targets API level 28 and must target at least API level 29 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 29."

      In 'Projects' -> 'Build' -> 'Build Android Apk'
      I have selected 'Android Build SDK' to 'android-29'.

      Content of gradle.properties in build directory:

      androidCompileSdkVersion=29
      qtMinSdkVersion=21
      qtTargetSdkVersion=28
      android.bundle.enableUncompressedNativeLibs=false
      androidBuildToolsVersion=
      buildDir=build
      qt5AndroidDir=E:/IT/Qt5.13/5.15.1/android/src/android/java
      

      I have no idea what I am doing wrong...

      Any idea?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Devoo said in Android app cannot be published due to targetSdkVersion:

      qtTargetSdkVersion=28

      This should be 29. You can set it up in your AndroidManifest file easily (Qt Creator has a nice editor for this file, too).

      (Z(:^

      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