小工具知识网

当前位置: 首页 > 行业知识 > Kotlin: Module was compiled with an incompatible version of Kotlin

行业知识

Kotlin: Module was compiled with an incompatible version of Kotlin

2026-12-06 09:57:43 来源:互联网转载

背景:

index.php/tags-602.html" >使用intellij-idea工具,spring boot项目,使用的maven

问题:

项目中没有依赖Kotlin,结果报错Kotlin版本问题,如下

Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.1.15.

解决方案:

Just go to the Build menu and click on the rebuild project.

只需要去Build菜单点击重建项目即可

 参考文章:

intellij idea - Error:Kotlin: Module was compiled with an incompatible version of Kotlin in a project of Spring Boot with Java not Kotlin not gradle - Stack Overflow

上一篇:节拍器APP下载指南

下一篇:摩托车价格大揭秘,多重选择,性价比之选!