Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. JDK 11 SDK Manager LinkageError SdkManagerCli
Forum Updated to NodeBB v4.3 + New Features

JDK 11 SDK Manager LinkageError SdkManagerCli

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 5.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    torui
    wrote on last edited by
    #1

    I need to build Qt 5.13 code for Android.
    I failed with JDK 17. Then I try to setup JDK 11.
    But I got setup error on Android SDK Manager.
    Error message is

    Error:LinkageError occurred while loading main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
    java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file version up to 55.0

    S 1 Reply Last reply
    0
    • T torui

      I need to build Qt 5.13 code for Android.
      I failed with JDK 17. Then I try to setup JDK 11.
      But I got setup error on Android SDK Manager.
      Error message is

      Error:LinkageError occurred while loading main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
      java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled by a more recent version of Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file version up to 55.0

      S Offline
      S Offline
      Stamat
      wrote on last edited by
      #2

      @torui I wrote about this here, https://forum.qt.io/topic/150404/android-device-does-not-recognize-apk/9
      But it seems that the problem is biger.

      S 1 Reply Last reply
      0
      • S Stamat

        @torui I wrote about this here, https://forum.qt.io/topic/150404/android-device-does-not-recognize-apk/9
        But it seems that the problem is biger.

        S Offline
        S Offline
        Stamat
        wrote on last edited by
        #3

        @Stamat What I did is: uninstalled all JREs, by Uninstall in Apps & Features in Win 10 or the JRE Removing tool from Oracle java, and also Uninstalled all other javas (openjdk), ensured that no paths set in PATH env var (Environment variables button on Win 10), then in cmd typed: java --version, to see no javas.
        Then:
        Cleanly installed openjdk 17 with all installation options set (path, java_home, etc, and saw PATH env var (Environment variables button on Win 10)) then in cmd typed: java --version, to see that jdk and jre are openjdk 17.
        Then:
        Cleanly installed openjdk 11 with all installation options UNset (path, java_home, etc, and saw PATH env var (Environment variables button on Win 10), that openjdk 11 is not set in path), then in cmd typed: java --version to see that jdk and jre are still openjdk 17. This way the intention is to have JRE 17, and optionally in the IDEs to choose the JDKs path (assume the IDEs use this path as JAVA_HOME).

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved