Closed stillmatic closed 1 week ago
hmm CI fails with
+ hermit test -t android-cmdline-tools-11076708.0
fatal: app/test_cmd.go:36: env.go:548: 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 the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
the minimum JDK target is 17 and the environment only has 11. I don't see a good way in Hermit to require a particular JDK version though. (and can confirm that tests pass locally, when we explicitly use JDK 17 or 21). any idea how to make CI pass?
tested working with
openjdk-21.0.3_9
. corresponding JDK version wasn't added with corretto, added that too.