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

Add CMake property to set androidCompileSdkVersion or --android-platform used by androiddeployqt

    XMLWordPrintable

Details

    • Android
    • a9ebb9743 (dev), 953b7aadd (dev)
    • 2024wk36s2FOQtforAndroid

    Description

      https://doc.qt.io/qt-6/android-deploy-qt-tool.html

          --android-platform <platform>: Builds against the given android
             platform. By default, the highest available version will be
             used.
      

      According to the documentation the highest available version will only be used when " --android-platform" is not given. But the behavior is different. Only "qtTargetSdkVersion" is set in the gradle.properties but "androidCompileSdkVersion" still use the highest available version when "--android-platform" is given.

      This is a big problem because it should be possible to define a reproducible build that not depends on a system configuration. When we force platform 35 the build should be fail when it is not installed or can not be installed automatically. But in our case platform 34 is installed and will be used.

      When we upgrade this dependency we would like to provide a CI node with 34 and 35 and the specific platform defined in every build should be used. So we can Update all builds and remove 34 after that.

      Currently 35 is started to be used by all builds as soon as it is given and leads to a lot of fails.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              assam Assam Boudjelthia
              larss Lars Schmertmann
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes