Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28827

Changing the Java SDK path in Android SDK settings doesn't change environment variables, and thus doesn't take immediate effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 10.0.1
    • Qt Creator 9.0.1
    • Android Support
    • None
    • Windows
    • 06427a038 (10.0)

    Description

      1. Install Creator on a machine that doesn't have java installed.
      2. Install the Android SDK parts from the device settings.
      3. Install Java 19.
      4. Build an Android project.
      5. Gradle will fail, complaining about class file major version 63.
      6. Install Java 18, go to the device settings and change the Java SDK path to point to Java 18 instead of 19.
      7. Build again. You'll notice that Gradle will still fail.
      8. JAVA_HOME still points to Java 19.

      I worked around this problem by first nuking the Java 19 installation, and when that didn't help, I exited and started Creator. Then it picked up the right Java version.

      Attachments

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

        Activity

          People

            portale Alessandro Portale
            villevoutilainen_qt Ville Voutilainen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes