Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0
A dependency was compiled with a newer Kotlin version than your project’s Kotlin Gradle plugin can read.
Module was compiled with an incompatible version of KotlinThe binary version of its metadata isexpected version is Meaning
Libraries built with Kotlin 2.x can’t be consumed by Kotlin 1.8 compilers. Upgrading a library (or Firebase/Compose BOM) without upgrading Kotlin triggers it.
Common causes
- Kotlin Gradle plugin older than a dependency’s Kotlin
- Mixed Kotlin versions across modules/plugins
- Compose compiler version tied to an old Kotlin
⚡ Quick fix
- Upgrade the Kotlin plugin (and Compose compiler plugin)
- Or downgrade the dependency
- Align versions in libs.versions.toml
Detailed fix by platform
Gradle
- kotlin
plugins { id("org.jetbrains.kotlin.android") version "2.0.21" apply false id("org.jetbrains.kotlin.plugin.compose") version "2.0.21" apply false }
How to diagnose
- Versions — Project Kotlin vs metadata version in error
- Dependency — Which jar?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- INSTALL_FAILED_USER_RESTRICTED INSTALL_FAILED_USER_RESTRICTED: Install canceled by user (Xiaomi/MIUI, Oppo, Vivo)
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026