文章目录

  • 1. 问题
  • 2. 分析问题
  • 3. 升级kotlin插件版本
    • 3.1 升级方法1
    • 3.1 升级方法2
  • 4. 其他问题
    • 4.1 方法1中的Cannot download ... Read timed out问题
    • 4.2 方法2中的Plugin 'Kotlin' is incompatible with this installation问题

1. 问题

今天在启动spring boot项目时,idea报出错误:Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.13.,如下图所示:

2. 分析问题

原来是idea的kotlin插件版本比pom中的低。

对此,可以有以下两种思路:

  1. 把项目里面的版本降一下

  2. 一种是升级下idea插件的版本

我选择了后者,但搞了好久,才解决这个问题

下面总结了两种方法。

3. 升级kotlin插件版本

3.1 升级方法1

  1. 打开kotlin面板
  • Windows系统:File -> settings -> Languages & Frameworks -> Kotlin

  • mac系统:Preferences -> Languages & Frameworks -> Kotlin

  1. 点击Check again

你会发现Kotlin当前版本是1.3.21-release-IJ2019.1-2,但新版本是1.3.72,因而,我们需要升级Kotlin版本。

  1. install


  1. 安装成功

3.1 升级方法2

如果因为某些插件需要翻墙下载,出现Download failed的情况,可以去官网直接下载,可以通过如下方式进入官网和安装Kotlin:

  1. File -> Settings -> Plugins

  2. 选择installed的tab框

  3. 在搜索框中输入Kotlin

  4. 单击图表,如下图所示:

  1. 双击图表,即可进入到官网

  1. 选择我们需要的版本下载

  1. 若下载完成后,如下方式安装

4. 其他问题

4.1 方法1中的Cannot download … Read timed out问题

在install时,可能会出现网络超时的问题,即:

Plugin Kotlin was not installed: Cannot download 'https://plugins.jetbrains.com/pluginManager/?action=download&id=org.jetbrains.kotlin&build=IU-191.6183.87&uuid=21a4a4e1-1cb8-4d41-b073-3ce4ffa8ab33': Read timed out , response: 200 OK

如下图所示:

这种情况,多试几次就可以了。

4.2 方法2中的Plugin ‘Kotlin’ is incompatible with this installation问题

在安装时,有可能出现这种情况:Plugin 'Kotlin' is incompatible with this installation

这种情况是因为我们下载的插件和idea的版本不匹配,只要下载和idea版本匹配的插件即可。可以参考这篇文章:https://blog.csdn.net/lvoelife/article/details/126402784

解决Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of ..相关推荐

  1. Error:Kotlin: Module was compiled with an incompatible version of Kotlin. Th

    以前从来没有遇到过的问题,蒙了,今天上班啥也没干启项目就报错了,启动编译前报错:Error:Kotlin: Module was compiled with an incompatible versi ...

  2. idea编译报错:Error:Kotlin: Module was compiled with an incompatible version of Kotlin.

    1. idea 编译报错信息 Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary ...

  3. Error:Kotlin: Module was compiled with an incompatible version of Kotlin...

    关于解决idea 启动项目报错,详情错误信息: Error:Kotlin: Module was compiled with an incompatible version of Kotlin. Th ...

  4. springboot启动报错Error:Kotlin: Module was compiled with an incompatible version of Kotlin

    springboot 启动报错 报错内容: Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The ...

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

    1.项目报错 error:Kotlin:module was compiled with an incompatible version of kotlin the binary version of ...

  6. IDEA启动项目时报Error:Kotlin: Module was compiled with an incompatible version of Kotlin.

    用IDEA启动项目时,有一个服务启不了,报错信息如下: Error:Kotlin: Module was compiled with an incompatible version of Kotlin ...

  7. Kotlin: Module was compiled with an incompatible version of Kotlin

    背景: 使用intellij-idea工具,spring boot项目,使用的maven 问题: 项目中没有依赖Kotlin,结果报错Kotlin版本问题,如下 Kotlin: Module was ...

  8. Error:Kotlin: Module was compiled with an incompatible version of Kotlin

    重新Build-rebuild project即可解决

  9. 【Java】启动报错 Error:Kotlin: Module was compiled with an incompatible version of Kotlin...

    问题描述 升级Kotlin (1)File -> Settings (2) 按照如下步骤进行升级 (3)升级中 (4)升级成功,需要重启restart (5) 项目启动成功

最新文章

  1. 《Imperfect C++中文版》——2.1 对象生命周期
  2. golang image.image 转文件流_Kuiper 1.0.2 正式发布 超轻量 IoT 边缘流处理
  3. 多案分库分表带来的问题-跨库关联查询
  4. 新手教程:不写JS,在MIP页中实现异步加载数据
  5. c++ stl 容器 迭代器 stl用法示例
  6. php log 行号 debug_backtrace,PHP debug_backtrace() 函数生成 backtrace(回溯跟踪)
  7. CF1228C. Primes and Multiplication(数学)
  8. sort()函数——C++
  9. Hibernate上路_18-Hibernate查询方式
  10. 解决UE4官方文档C++API查询慢问题
  11. 在SPSS中使用广义估算方程对非独立相关数据进行分析的方法
  12. IELTS11 Test2 laws are needed to make people recycle more of their waste
  13. 宝塔面板搭建方维直播图文教程
  14. Java 编写的 坦克大战小游戏
  15. 一意孤行亚马逊----一个钓鱼疯子的巴西亚马逊之行( 5.九月21日 亚马逊的鱼并不好钓) 作者:咸水鱼...
  16. java 2048思路_Java版2048
  17. 2db多少功率_功率和db换算(功率与db换算表)
  18. 小程序报错修改Expecting 'STRING','NUMBER'
  19. 12306 抢票系列之只要搞定RAIL_DEVICEID的来源,从此抢票不再掉线(上)
  20. vue 解决重复点击导航路由报错 问题

热门文章

  1. 鲜果网热点改版,增加热点专题
  2. QString 与 LPCWSTR 互转
  3. 【纪录片】中国墓葬(汉墓)考古系列记录片——大葆台西汉墓(北京丰台区郭公庄)
  4. 互联网大佬抢大数据“钻石矿”
  5. 关于外网访问本地服务器
  6. 把一个数分解成任意几个数之和全部结果
  7. Linux Mint 13开启Compiz Fusion特效(3D桌面 屏幕火焰等)
  8. PPT笔记----PPT模板,去除母版的广告
  9. #实现拖拉文件_硬核测评7款主流农用拖拉机:“小鹿”?甩了对手N条街
  10. 服务器ssd硬盘接笔记本,小编教你怎么判断笔记本能不能装ssd