Smorg
11/04/2022, 4:32 PMapollo-kotlin
project and I am getting this error while trying a gradle sync:
Could not read '<https://api.adoptium.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/eclipse>' as it does not exist.
Any help to solve this would be appreciated. Thank you!mbonnin
11/04/2022, 4:37 PMmbonnin
11/04/2022, 4:38 PMmbonnin
11/04/2022, 4:40 PMmbonnin
11/04/2022, 4:41 PMSmorg
11/04/2022, 4:42 PMjava --version
:
openjdk 17.0.4.1 2022-08-12
OpenJDK Runtime Environment (build 17.0.4.1+0-17.0.4.1b469.62-9127311)
OpenJDK 64-Bit Server VM (build 17.0.4.1+0-17.0.4.1b469.62-9127311, mixed mode)
mbonnin
11/04/2022, 4:42 PMmbonnin
11/04/2022, 4:43 PM> Unable to download toolchain matching these requirements: {languageVersion=18, vendor=any, implementation=vendor-specific}
> Unable to download toolchain. This might indicate that the combination (version, architecture, release/early access, ...) for the requested JDK is not available.
> Could not read '<https://api.adoptopenjdk.net/v3/binary/latest/18/ga/linux/x64/jdk/hotspot/normal/adoptopenjdk>' as it does not exist.
mbonnin
11/04/2022, 4:45 PMdiff --git a/build-logic/build.gradle.kts b/build-logic/build.gradle.kts
index 65f2b81f3..25d708b7f 100644
--- a/build-logic/build.gradle.kts
+++ b/build-logic/build.gradle.kts
@@ -56,6 +56,7 @@ dependencies {
// 'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
+ toolchain.vendor.set(JvmVendorSpec.AZUL)
}
gradlePlugin {
mbonnin
11/04/2022, 4:45 PMSmorg
11/04/2022, 4:47 PMmbonnin
11/04/2022, 4:47 PMSmorg
11/04/2022, 4:48 PM* What went wrong:
A problem occurred configuring root project 'apollo-kotlin'.
> Could not determine the dependencies of null.
> Could not resolve all dependencies for configuration ':classpath'.
> Failed to calculate the value of task ':build-logic:compileJava' property 'javaCompiler'.
> Unable to download toolchain matching these requirements: {languageVersion=8, vendor=any, implementation=vendor-specific}
> Unable to download toolchain. This might indicate that the combination (version, architecture, release/early access, ...) for the requested JDK is not available.
> Could not read '<https://api.adoptium.net/v3/binary/latest/8/ga/mac/aarch64/jdk/hotspot/normal/eclipse>' as it does not exist.
mbonnin
11/04/2022, 4:49 PMSmorg
11/04/2022, 4:51 PMmbonnin
11/04/2022, 4:52 PMSmorg
11/04/2022, 4:53 PMmbonnin
11/04/2022, 4:53 PMmbonnin
11/04/2022, 4:53 PMmbonnin
11/04/2022, 4:54 PMSmorg
11/04/2022, 4:57 PMSmorg
11/04/2022, 4:57 PMmbonnin
11/04/2022, 4:58 PMSmorg
11/04/2022, 4:59 PMmbonnin
11/04/2022, 4:59 PMSmorg
11/04/2022, 5:34 PMmbonnin
11/04/2022, 5:35 PMmbonnin
11/04/2022, 5:35 PMmbonnin
11/04/2022, 5:36 PMSmorg
11/04/2022, 5:36 PMSmorg
11/04/2022, 9:24 PM