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

androidCompileSdkVersion cannot be set from CMake alone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.5.0
    • None
    • M1 MacBook Pro
      macOS Ventura 13.2
      Qt 6.5.0
    • macOS

      When building for Android with CMake, the compile SDK version canĀ only be set when building with Qt Creator by modifying the "Build Android APK" build step.

      When building from the command line, however, there is no CMake option / target property that allows to specify this SDK version. Instead, androiddeployqt always chooses the latest available SDK, which might not always be the desired one.

      Possible fix: Add a CMake target property alongside QT_ANDROID_MIN_SDK_VERSION and QT_ANDROID_TARGET_SDK_VERSION, for example QT_ANDROID_COMPILE_SDK_VERSION.

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

            qtbuildsystem Qt Build System Team
            rojsc Robert Schittny
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes