Module Was Compiled with an Incompatible Version of Kotlin. the Binary Version of Its Metadata Is 1.5.1, Expected Version Is 1.1.15

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15

Changing this in file build.gradle solved my problem.

From

ext.kotlin_version = '1.3.50'

to

ext.kotlin_version = '1.6.0'

Or whatever the latest version of Kotlin available and make sure to update Kotlin version on Android Studio as well.

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

For someone who is still looking for answer to this, here is the working solution for this problem. In your project level open build.gradle file, increase the
ext.kotlin_version from whatever current version that you have like 1.5.0, to the latest stable version 1.6.0 (Whatever is latest at that time). Thanks

You can get latest version from here:

https://kotlinlang.org/docs/releases.html#release-details

Module was compiled with an incompatible version of Kotlin. - the case with build.gradle.kts file

Solution: upgrade all the used Gradle plugins to their latest versions.



Related Topics



Leave a reply



Submit