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

Gradle sync issues with JDK 22

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.8.0 Beta3
    • QPA: Android
    • Android Studio Koala 2024.1.1
      Ubuntu 24.04, Win10, Win11, macOS Sonoma 14.6.1
      Qt 6.8.0 beta 3
    • Android
    • 2024wk40s3FOQtforAndroid, 2024wk42s3FOQtforAndroid

    Description

      Preconditions:
      -openJDK 22.0.2 installed and configured in Android Studio
      -openJDK 21.0.4 also installed (or any earlier major version of jdk)
      -Android Gradle plugin version 8.5.2
      -qtquickview_java project opened

      Steps:

      1. Try gradle sync with Gradle version 8.5 and 8.7 when openJDK 22 is set -> Neither of these don't work even though Android Studio indicates upgrading to 8.5 as a working solution
      2. Switch to openJDK 21
      3. Set Gradle version to 8.7
      4. Sync the project

      Result:
      Gradle sync succeeds when downgrading the JDK version and the example app can be ran.

      Other info:
      -Some error logs attached
      -.webm video attached

      Attachments

        1. jdk22_issue.webm
          2.01 MB
        2. jdk22_error.txt
          24 kB
        3. jdk22_error2.txt
          30 kB

        Issue Links

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

          Activity

            People

              rampe Rami Potinkara
              janne_kitti Janne Kitti
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes