Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 895
user118751 Avatar asked Jul 15 '26 00:07

user118751


1 Answers

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

like image 197
mohamed bhajy Avatar answered Jul 17 '26 14:07

mohamed bhajy