Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110022

Docs missed for ANDROID_MIN_SDK_VERSION and ANDROID_TARGET_SDK_VERSION variables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.2.9, 6.5.2
    • 5.15.7, 6.4.2
    • Documentation
    • None
    • Android
    • 09c7c0d28 (dev), edba6e2a0 (6.5), e20da13a9 (tqtc/lts-6.2)
    • DaVinci 72, DaVinci 73, DaVinci 74, DaVinci 75, 2023wk18FOQtforAndroid, 2023wk20FOQtforAndroid

    Description

      From Qt 5.15 wiki (https://wiki.qt.io/New_Features_in_Qt_5.15#Platform_Changes) I know that minSdkVersion & targetSdkVersion moved from AndroidManifest.xml to build.gradle (QTBUG-70817).

      Easiest way to set the SdkVersions is from inside .pro using variables ANDROID_MIN_SDK_VERSION and ANDROID_TARGET_SDK_VERSION.

      Seems that this is also valid for Qt6 / cmake: https://doc.qt.io/qt-6/qt-android-generate-deployment-settings.html#qt6-android-generate-deployment-settings

      Qt 6.4 docs still says, that minimum required SDK has to be set inside Android Manifest: https://doc.qt.io/qt-6/android-publishing-to-googleplay.html - this will be overwritten by build process.

      Also QtCreator doc is wrong and doesn't mention use of the variables: https://doc.qt.io/qtcreator/creator-deploying-android.html#android-manifest-editor 

      should I open a QtCreator Bug, too ?

       

      Attachments

        For Gerrit Dashboard: QTBUG-110022
        # Subject Branch Project Status CR V

        Activity

          People

            nick_bennett Nicholas Bennett
            ekkescorner Ekkehard
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes