Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-215

Gradle command line build fails with Kotlin-based example

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • QtGP 1.1
    • QtGP: General
    • 47d36b15f (dev)

    Description

      Steps to reproduce:

      1. Browse to qtquickview_kotlin directory
      2. gradle build -Dorg.gradle.java.home=$JAVA_HOME

      Expected results:

      Builds succeeds

      Actual results:

      Build fails with QtBuild dependency problem.

      > Task :app:generateReleaseLintVitalReportModel FAILEDFAILURE: Build failed with an exception.* What went wrong:
      A problem was found with the configuration of task ':app:generateReleaseLintVitalReportModel' (type 'LintModelWriterTask').
        - Gradle detected a problem with the following location: '/Users/ollivuolteenaho/RTA/Qt_6.8.0/Examples/Qt-6.8.0/platforms/android/qtquickview_kotlin/app/build/qt_generated/qtquickview/android-build-qtquickview/qtquickview.aar'.
          
          Reason: Task ':app:generateReleaseLintVitalReportModel' uses this output of task ':app:QtBuildTask' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
          
          Possible solutions:
            1. Declare task ':app:QtBuildTask' as an input of ':app:generateReleaseLintVitalReportModel'.
            2. Declare an explicit dependency on ':app:QtBuildTask' from ':app:generateReleaseLintVitalReportModel' using Task#dependsOn.
            3. Declare an explicit dependency on ':app:QtBuildTask' from ':app:generateReleaseLintVitalReportModel' using Task#mustRunAfter.
          
          For more information, please refer to https://docs.gradle.org/8.10/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

      Attachments

        Issue Links

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

          Activity

            People

              teko Tero Koponen
              olvuolte Olli Vuolteenaho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes