Sunday, April 16, 2023

How to resolve the error 'Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.1.15' in IntelliJ IDEA

How to resolve the error 'Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.1.15'

This error occurs when there is a mismatch between the version of Kotlin used to compile a module and the version expected by the Kotlin runtime environment. Specifically, the binary version of metadata generated during compilation is not compatible with the expected version, which leads to the error message. This can happen if you are using an outdated version of Kotlin or if you have multiple versions installed and the wrong version is being used. It can also occur if you are using a library or module that was compiled with a different version of Kotlin than the one used in your project.

screenshot of postman with the json in the body section

Solution :

in IntelliJIdea goto Settings -> Plugins -> search for Kotlin in the installed plugins

screenshot of postman with the json in the body section

simply disable the kotlin plugin, and you will get rid of this error.

No comments:

Post a Comment