【IDEA】Idea 报错 Module was compiled with an incompatible version of Kotlin. The binary version of its

【IDEA】Idea 报错 Module was compiled with an incompatible version of Kotlin. The binary version of its_第1张图片

1.场景1

提示:在项目本地DEBUG或者build的时候报了以下错误:kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.2.

关键这个是偶现的,我用的同一个环境,同一套代码,同一个git别人的能运行我的不能运行。

以前我记得是编译一下就好了。点击这个小锤锤,编译项目

在这里插入图片描述

但是发现不管用,而且就算是清空编译目录也是不可以的,但是点击rebuild project 就是可以

【IDEA】Idea 报错 Module was compiled with an incompatible version of Kotlin. The binary version of its_第2张图片

M.扩展

Module was compiled with an incompatible version of Kotlin.

解决Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of …

你可能感兴趣的:(工具-开发工具,intellij-idea,kotlin,java)