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

Android SDK detection should default to latest version available on the system

    XMLWordPrintable

Details

    • Android

    Description

      When building Qt for Android with qmake in Qt 5.15, we always default to using the minimum SDK version (if it exists), even if if a newer version exists on the system.

      The code that does that is here https://github.com/qt/qtbase/blob/3010c387132a54f81147d5b2c17d96b27f49fe0f/mkspecs/features/android/sdk.prf

      QTBUG-96979 was partially caused by this, because the min SDK version was not increased, but new code was added that used newer API from a newer SDK version.

      If we always defaulted to the latest available SDK (while also doing the min version validation), it would have been less likely that the problem would be hit.

      We should consider doing the same in CMake here:
      https://github.com/qt/qtbase/blob/dev/cmake/QtPlatformAndroid.cmake#L67

      Attachments

        Issue Links

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

          Activity

            People

              semlanik Alexey Edelev
              alexandru.croitor Alexandru Croitor
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes