相关疑难解决方法(0)

无法使用 Kotlin 1.7.10

我在 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)

intellij-idea gradle kotlin

22
推荐指数
4
解决办法
4万
查看次数

标签 统计

gradle ×1

intellij-idea ×1

kotlin ×1