Java Spring Boot application doesn't run from IDEA due to kotlin error

Viewed 4505

I have a Java Spring Boot application which is coded purely in Java. When I try to run it from Intellij IDEA using run configuration, I get the following error:

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.16.

If I remove build step from run configuration, build using mvn clean install and then run the application, everything works fine.

I have tried changing Kotlin compiler settings in IDEA but the issue persists.

3 Answers

Intellij settings -> languages & Frameworks -> Kotlin -> change Update Channel to a new version

I had the same issue with running a spring boot application. For me pdating my IDEA to the most recent version (2021.1.1 Ultimate Edition) solved this issue with Kotlin for me.

intellij > preferences > plugins > Installed : "uncheck bundled kotlin"

Related