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

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

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.7, 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes