close

[Solved] 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

I am trying to run my android kotlin app But I am facing the following error: 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. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Let’s Get Start With This Article.

How 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 Error Occurs?

I am trying to run my android kotlin app But I am facing the following error:

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

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve 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 Error?

  1. How To Solve 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 Error?

    To Solve 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 Error You Can try to rebuild your project By Open Open IntelliJ >> Select Build >> Rebuild Project and then run your application again and your error will be solved.

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

    To Solve 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 Error You Just need to Open your Project level build.gradle file and Increase your ext.kotlin_version to the latest stable version. which is 1.7.10. And then Open gradle-wrapper.properties file and change your distributionUrl version to the given below: distributionUrl=https://services.gradle.org/distributions/gradle-7.2.0-all.zip And now, Your error will be solved. Thanks.

Solution 1: Update ext.kotlin_version

To Solve 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 Error You Just need to Open your Project level build.gradle file and Increase your ext.kotlin_version to the latest stable version. which is 1.7.10.

buildscript {
    ext.kotlin_version = '1.7.10' // Change This Line
    repositories {
        google()
        jcenter()
    }

}

And then Open gradle-wrapper.properties file and change your distributionUrl version to the given below.

distributionUrl=https://services.gradle.org/distributions/gradle-7.2.0-all.zip

And now, Your error will be solved. Thanks.

Solution 2: Rebuild Project

You Can try to rebuild your project By Open Open IntelliJ >> Select Build >> Rebuild Project and then run your application again and your error will be solved.

Conclusion

It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you.

Also, Read

Leave a Comment