用IDEA启动项目时,有一个服务启不了,报错信息如下:
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.
![](https://img-blog.csdnimg.cn/img_convert/7c4fe3f04f6b490d0581fb374fbe25a8.png)
我的IDEA版本是:IntelliJ IDEA 2018.3.5 (Ultimate Edition)
方法一:升级Kotlin插件
![](https://img-blog.csdnimg.cn/img_convert/8487b4768faa7966714f3311c73e3a36.png)
![](https://img-blog.csdnimg.cn/img_convert/3ceed0703ef5af03d97f562415ef5d17.png)
![](https://img-blog.csdnimg.cn/img_convert/7a32846ba5a9e635be192f56363c20dc.png)
由于下载时间太慢,换第二种方案;
方法二:bulid项目
![](https://img-blog.csdnimg.cn/img_convert/03714a6abe20c201751a3d0825bc44f6.png)
![](https://img-blog.csdnimg.cn/img_convert/6549271bb0b67a6fef88b7e63125ac47.png)
启动成功!
![](https://img-blog.csdnimg.cn/img_convert/69c68490dc23325885da957e208625a2.png)