背景:
使用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菜单点击重建项目即可
参考文章:文章来源:https://www.toymoban.com/news/detail-736760.html
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文章来源地址https://www.toymoban.com/news/detail-736760.html
到了这里,关于Kotlin: Module was compiled with an incompatible version of Kotlin的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!