Код: Выделить всё
C:\Users\Administrator>java -version
java version "17.0.10" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)
Код: Выделить всё
Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
Unable to download toolchain matching the requirements ({languageVersion=8, vendor=any, implementation=vendor-specific}) from 'https://api.foojay.io/disco/v3.0/ids/99916d5878e922e25b4f443774d694e6/redirect'.
Could not HEAD 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u402-b06/OpenJDK8U-jdk_x64_windows_hotspot_8u402b06.zip'.
Connect to github.com:443 [github.com/20.205.243.166] failed: Connection timed out: no further information
Connection timed out: no further information
Но github.com/20.205.243.166 недоступен и показывает «Не найден».
Я также проверил build.gradle.kts, содержимое которого показано ниже:
Код: Выделить всё
plugins {
kotlin("jvm") version "1.9.22"
application
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
}
application {
mainClass.set("MainKt")
}
Так что мне теперь проверить или изменить?
Подробнее здесь: https://stackoverflow.com/questions/779 ... operty-jav
Мобильная версия