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

Can't build QtQ4A examples from command line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.1
    • Examples and Demos
    • None
    • NDK r27c
      android-35
    • Android, macOS

    Description

      Steps to reproduce:

      1. Browse with shell of choice to one of the QtQ4A examples
      2. Fix qtPath and/or qtKitDir to point to 6.9.1 (at least if using installed 6.9.1 (https://codereview.qt-project.org/c/qt/qtdeclarative/+/644299))
      3. Execute "gradle build"

      Expected:

          Build succeeds

      Actual:

          Build fails

      > Task :app:lintDebug FAILED
      Lint found 1 errors, 14 warnings. First failure:/Users/ollivuolteenaho/Qt/Examples/Qt-6.9.1/platforms/android/qtquickview_kotlin/app/src/main/res/values/themes.xml:4: Error: android:windowOptOutEdgeToEdgeEnforcement requires API level 35 (current min is 28) [NewApi]
              <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
         Explanation for issues of type "NewApi":
         This check scans through all the Android API calls in the application and
         warns about any calls that are not available on all versions targeted by
         this application (according to its minimum SDK attribute in the manifest).
      
         If you really want to use this API and don't need to support older devices
         just set the minSdkVersion in your build.gradle or AndroidManifest.xml
         files.
      
         If your code is deliberately accessing newer APIs, and you have ensured
         (e.g. with conditional execution) that this code will only ever be called
         on a supported platform, then you can annotate your class or method with
         the @TargetApi annotation specifying the local minimum SDK to apply, such
         as @TargetApi(11), such that this check considers 11 rather than your
         manifest file's minimum SDK as the required API level.
      
         If you are deliberately setting android: attributes in style definitions,
         make sure you place this in a values-vNN folder in order to avoid running
         into runtime conflicts on certain devices where manufacturers have added
         custom attributes whose ids conflict with the new ones on later platforms.
      
         Similarly, you can use tools:targetApi="11" in an XML file to indicate that
         the element will only be inflated in an adequate context.

      Regression from 6.9.0. Both Java and Kotlin based examples are affected.

      Attachments

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

        Activity

          People

            olvuolte Olli Vuolteenaho
            olvuolte Olli Vuolteenaho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change