GradleConnector:无法根据'11 .0.5'确定Java版本

时间:2019-12-28 21:00:21

标签: java gradle version

我知道,我也有很多类似问题的问题,但是我相信这个问题是gradle-tooling-api程序包所固有的。

./gradlew --version给出5.2.1,并且JVM指出其中特别是“ 11.0.5”。

我的build.gradle包含以下依赖项:

implementation  'org.gradle:gradle-tooling-api:4.3'

...这是Maven Central中可用的最新版本。尝试了相关搜索...什么都没出现。

FWIW这是输出

java.lang.IllegalArgumentException: Could not determine java version from '11.0.5'.
    at org.gradle.api.JavaVersion.toVersion(JavaVersion.java:72)
    at org.gradle.api.JavaVersion.current(JavaVersion.java:82)
    at org.gradle.internal.jvm.UnsupportedJavaRuntimeException.javaDeprecationWarning(UnsupportedJavaRuntimeException.java:36)
    at org.gradle.tooling.internal.consumer.ConnectorServices.checkJavaVersion(ConnectorServices.java:59)
    at org.gradle.tooling.internal.consumer.ConnectorServices.createConnector(ConnectorServices.java:37)
    at org.gradle.tooling.GradleConnector.newConnector(GradleConnector.java:85)
    at core.MiscSpec.the help message should say where the log file is located(misc_tests.groovy:116)

0 个答案:

没有答案