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.
Intellij settings -> languages & Frameworks -> Kotlin -> change Update Channel to a new version
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With