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 theext.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
Logcat Not Displaying My Log Calls
Dynamically Updating an Autocompletetextview Adapter
Adding Tab Inside Fragment in Android
How to Tell If a Closed Path Contains a Given Point
Assign Width to Half Available Screen Width Declaratively
Error:Unexpected Lock Protocol Found in Lock File. Expected 3, Found 0
Android Failed to Install Helloworld.Apk on Device (Null) Error
Getting Certificate Details from an APK
Android Webview, Scaling Image to Fit the Screen
Android Hello, Gallery Tutorial -- "R.Styleable Cannot Be Resolved"
Android Gridview Draw Dividers
Using Notifyitemremoved or Notifydatasetchanged with Recyclerview in Android
Android: How to Create a Motionevent
Android Quotes Within an SQL Query String
Java.Lang.Securityexception: !@Too Many Alarms (500) Registered from Pid 10790 Uid 10206