我在 IntelliJ IDEA 中有一个 Kotlin 项目(不针对 Android),目前可以使用 Kotlin 1.6.10 正常编译。当我更改为 1.7.10 时,出现以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'jwotd'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0.
Required by:
project :
> The consumer was configured to find a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally. However we cannot choose between the following variants …Run Code Online (Sandbox Code Playgroud)