Android Koltin Build error incompatible version of Kotlin metadata is 1.5.1, expected version is 1.1.15


If your getting error while building in android studio while building apk  

Android Koltin Build error incompatible version of Kotlin metadata is 1.5.1, expected version is 1.1.15.

Error


Error :
   Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.



Build.gradle(app-level)


Solution

file : build.gradle
 

Replace
implementation "androidx.core:core-ktx:+"


With
implementation "androidx.core:core-ktx:1.5.0"


No comments:

Post a Comment