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

Building Qt failed when there're older SDK versions than 30

    XMLWordPrintable

Details

    • Android, macOS
    • 1586f414b1702f18b3f7dab595fcd01da46e8ac1

    Description

      Building Qt fails when there's an older version of Android SDK e.g. 28 or 29 in the system.

      It produces errors such as

       .../qtbase/src/android/jar/src/org/qtproject/qt5/android/ExtractStyle
       .java:418: error: cannot find symbol
       if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q)
       symbol: variable Q
       location: class VERSION_CODES
      
       .../qtbase/src/android/jar/src/org/qtproject/qt5/android/ExtractStyle
       .java:421: error: cannot find symbol
       numStates = stateList.getStateCount();
       symbol: method getStateCount()
       location: variable stateList of type StateListDrawable
      

      as the old one is used.
      Removing older ones solves the problem.

      Attachments

        Issue Links

          Activity

            People

              alexandru.croitor Alexandru Croitor
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: