Error "Module was compiled with an incompatible version of Kotlin" in Android Studio: how to fix?
Hello, colleagues! I'm a beginner Android developer, and I have a problem that's been bothering me for two days now. I'm using Android Studio and writing in Kotlin. Yesterday I decided to update several dependencies in the project, and also added a new library for working with coroutines (kotlinx-coroutines-android). After Gradle sync, the project stopped compiling, and I'm getting 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"
Here is my build.gradle file (at the app module level):
```kotlin
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android' version '1.5.10'
}
android {
compileSdk 31
defaultConfig {
applicationId "com.example.mya
No answers yet.
Log in to leave an answer
Blogs