IDEA编译报错:Error:Kotlin: Module was compiled with an incompatible version of Kotlin

问题

Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.13.

Warning:Kotlin: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    C:/Users/xxx/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.5.31/kotlin-stdlib-jdk8-1.5.31.jar (version 1.5)
    C:/Users/xxx/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.5.31/kotlin-stdlib-jdk7-1.5.31.jar (version 1.5)
    C:/Users/xxx/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.5.31/kotlin-stdlib-common-1.5.31.jar (version 1.5)
    C:/Users/xxx/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.6.20/kotlin-stdlib-1.6.20.jar (version 1.6)
Warning:Kotlin: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath

IDEA莫名其妙出现此问题,Build->Rebuild Project 就好了,具体原因未知。

参考

Idea编译项目,突然报错:Error:Kotlin: Module was compiled with an incompatible version of Kotlin.

posted @ 2024-01-30 08:31  strongmore  阅读(1455)  评论(0编辑  收藏  举报