incompatible version of Kotlin Android Origin: On your device OSI layer 7 · Application Last updated 13 Oct 2026

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.

Exact message you may see Module was compiled with an incompatible version of KotlinThe binary version of its metadata isexpected version is
Seen on: Android

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

  1. Upgrade the Kotlin plugin (and Compose compiler plugin)
  2. Or downgrade the dependency
  3. Align versions in libs.versions.toml

Detailed fix by platform

Gradle

  1. 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

  1. Versions — Project Kotlin vs metadata version in error
  2. 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:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

0xC1900101 — Windows upgrade error 0xC1900101 (driver error, rolled back) (Windows)0xC1900101Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource link…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar no…caching_sha2_password — Authentication plugin 'caching_sha2_password' cannot be loaded (MySQL)caching_sha2_passwordCannot fit requested classes in a single dex file — Cannot fit requested classes in a single dex file (# methods: 65536 > 65536) — mergeDex failed (Android)Cannot fit requested …cb() never called — npm ERR! cb() never called! (npm)cb() never calledconfig global deprecated — npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. (npm)config global depreca…cookies() should be awaited — Next.js 15: Route "/x" used `cookies().get('token')`. `cookies()` should be awaited before using its value (Next.js)cookies() should be a…incompati…

Explore the map of this error Full error map →

🧠 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.