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.
Solution :
in IntelliJIdea goto Settings -> Plugins -> search for Kotlin in the installed plugins

simply disable the kotlin plugin, and you will get rid of this error.
No comments:
Post a Comment