AGP 9.6 turns an old Kotlin Gradle plugin (KGP) version from a silent upgrade into a build failure. If any line in your build asks for KGP below 2.2.10, AGP 9.6.0-alpha07 stops at configuration with “AGP requires Kotlin Gradle plugin 2.2.10 or newer”, and the strictly(...) plus android.builtInKotlin=false escape hatch from AGP 9.0 to 9.5 no longer works. A second break arrives one step earlier: Gradle 9.8.2, which AGP 9.6 requires, makes a buildSrc convention plugin on KGP 2.2.x fail to compile, even with AGP 9.5.3.
What to do now: raise every KGP declaration (root buildscript, buildSrc, included builds) to 2.3.0 or newer before you touch AGP, then move Gradle to 9.8.2, then AGP. If you want one version for the whole build, the new kotlinGradlePluginVersion setting in settings.gradle.kts pins it, and in our build it also lifted an old 2.2.0 classpath line to the pinned version.
We built six variants of the same small Android app with a buildSrc convention plugin on our M1 lab Mac (macOS 15.7.3, JDK 17 Zulu 17.0.21, Gradle 9.6.0 and 9.8.2, AGP 9.5.3 and 9.6.0-alpha07). Every error below is from those builds.
Why we did this: BMDB on Android TV, Peepal and Shopkeeper share convention plugins, and React Native’s Android build declares its own KGP version. When we tested AGP 9.6 alpha06 on React Native last week, the first thing that broke was React Native’s Gradle plugin compiling on KGP 2.2.0 under Gradle 9.8.2 (our prefab post). Kotlin 2.5.0 is planned for December 2026 on the Kotlin releases page, so many teams will bump KGP and AGP in the same week.
What changed in AGP 9.6
From the AGP 9.6.0 release notes (last updated 1 Dec 2026):
| Item | AGP 9.0 to 9.5 | AGP 9.6 |
|---|---|---|
| KGP declared below 2.2.10 | Upgraded to 2.2.10 automatically | Dependency resolution fails |
strictly(...) with android.builtInKotlin=false |
Lets you keep an older KGP | Fails resolution |
| Default KGP when none is declared | 2.2.10 | 2.4.20 |
| Minimum Gradle | 9.6.0 for AGP 9.5 (AGP release notes) | 9.8.2 (from alpha04) |
| One KGP version for the build | Not available | android { kotlinGradlePluginVersion = "..." } in settings (incubating, from alpha06) |
| KSP version constraint | Constrained to 2.2.10-2.0.2 |
Removed; upgrade KSP yourself |
The release notes also say that buildSrc and included builds on KGP 2.2.x fail to compile against Gradle 9.8.2, because Gradle 9.8.2 bundles Kotlin 2.4 and KGP 2.2.x reads metadata only up to 2.3. Precompiled script plugins that use Gradle’s bundled kotlin-dsl are not affected.
The test project
One app module with a plain Kotlin Activity (built-in Kotlin, no kotlin-android plugin), compileSdk 37.2, targetSdk 36, and a buildSrc that applies kotlin("jvm") and registers a convention plugin the app applies:
// buildSrc/build.gradle.kts
plugins {
`java-gradle-plugin`
kotlin("jvm") version "2.2.0"
}
repositories { mavenCentral() }
gradlePlugin {
plugins {
create("labConvention") {
id = "lab.android-convention"
implementationClass = "LabConventionPlugin"
}
}
}
The root build.gradle.kts puts AGP and KGP on the buildscript classpath, the way React Native templates and many older apps still do:
buildscript {
repositories { google(); mavenCentral() }
dependencies {
classpath("com.android.tools.build:gradle:9.6.0-alpha07")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0")
}
}
Six builds, six results
| Variant | Gradle | AGP | KGP root / buildSrc | Result |
|---|---|---|---|---|
| S1 today’s setup | 9.6.0 | 9.5.3 | 2.2.0 / 2.2.0 | Builds; root KGP shows 2.2.0 -> 2.2.10 |
| S2 Gradle bump only | 9.8.2 | 9.5.3 | 2.2.0 / 2.2.0 | buildSrc:compileKotlin fails, metadata 2.4.0 |
| S3 AGP 9.6 | 9.8.2 | 9.6.0-alpha07 | 2.2.0 / 2.4.20 | Classpath resolution fails |
| S4 old workaround | 9.8.2 | 9.6.0-alpha07 | strictly("2.2.0") / 2.4.20 |
Classpath resolution fails |
| S5 fix: bump | 9.8.2 | 9.6.0-alpha07 | 2.4.20 / 2.4.20 | Builds |
| S6 fix: settings pin | 9.8.2 | 9.6.0-alpha07 | 2.2.0 / 2.3.20, settings pin 2.3.20 | Builds; root KGP shows 2.2.0 -> 2.3.20 |
S1 is what many projects run today without knowing it: buildEnvironment printed org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0 -> 2.2.10. AGP 9.5 quietly upgraded the old line. That quiet upgrade is exactly what AGP 9.6 removes.
Gradle 9.8.2 breaks buildSrc first
S2 changes nothing but the Gradle wrapper. The build failed in 13 seconds, before AGP was even configured:
> Task :buildSrc:compileKotlin FAILED
e: Incompatible classes were found in dependencies.
e: .../gradle-9.8.2/lib/kotlin-stdlib-2.4.10.jar!/META-INF/kotlin-stdlib.kotlin_module
Module was compiled with an incompatible version of Kotlin.
The binary version of its metadata is 2.4.0, expected version is 2.2.0.
e: LabConventionPlugin.kt:6:22 Class 'kotlin.collections.CollectionsKt__CollectionsKt'
was compiled with an incompatible version of Kotlin. The actual metadata
version is 2.4.0, but the compiler version 2.2.0 can read versions up to 2.3.0.
The useful detail for anyone debugging this: the jar named in the error is Gradle’s own kotlin-stdlib-2.4.10.jar from the wrapper distribution, not one of your dependencies. The fix is in buildSrc/build.gradle.kts, not in the app.
AGP 9.6 rejects the old classpath line
In S3, buildSrc is already on 2.4.20 and compiles. Then configuration of the root project stops:

Real output from our M1 lab Mac, shortened; the full message also lists the BOM constraint path.
The message is better than most Gradle resolution errors. It names the requester (buildscript of root project), the AGP rule ({prefer 2.4.20; reject (,2.2.10)}) and the reason in plain words. In a bigger build, read the “Dependency path” lines to find which plugin brought the old version in.
The old escape hatch is closed
S4 is the workaround people used on AGP 9.0 to 9.5 to keep an older compiler: android.builtInKotlin=false in gradle.properties and a strict version on the classpath.
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") {
version { strictly("2.2.0") }
}
It failed in 3 seconds with the same “AGP requires Kotlin Gradle plugin 2.2.10 or newer” reason, now on kotlin-gradle-plugin-api. If a library forces you onto an old Kotlin compiler, AGP 9.6 is where that stops working.
Fix 1: bump KGP everywhere

$AGP and $KGP stand for the full Maven coordinates shown in the code above.
S5 raises the root classpath line and buildSrc to 2.4.20, the version AGP 9.6 prefers. It built (BUILD SUCCESSFUL, first build on that Mac including downloads: 2 min 1 s) and buildEnvironment shows kotlin-gradle-plugin:2.4.20 with no arrow. Any version from 2.2.10 up passes AGP’s check, but buildSrc needs 2.3.0 or newer under Gradle 9.8.2, so 2.2.10 is not a safe target for both. The release notes add one more reason to go to 2.3.20 or later: older KGP versions call Gradle APIs that are deprecated in 9.8.2 and fail builds that run with --warning-mode=fail.
If you dropped the KGP classpath line entirely and rely on built-in Kotlin, AGP resolves 2.4.20 for you. Check KSP afterwards: AGP 9.6 no longer constrains it, and a Kotlin-prefixed KSP version such as 2.2.10-2.0.2 must be upgraded to match.
Fix 2: pin one version in settings
S6 keeps the old kotlin-gradle-plugin:2.2.0 line in the root build file on purpose and adds the Android settings plugin with the new property:
// settings.gradle.kts
pluginManagement {
repositories { google(); mavenCentral(); gradlePluginPortal() }
plugins {
id("com.android.settings") version "9.6.0-alpha07" apply false
}
}
plugins { id("com.android.settings") }
android {
kotlinGradlePluginVersion = "2.3.20"
}
It built (first build including downloads: 3 min 29 s), and buildEnvironment showed why:
+--- org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0 -> 2.3.20 (*)
+--- org.jetbrains.kotlin:kotlin-gradle-plugins-bom:{strictly 2.3.20} -> 2.3.20 (*)
The pin aligns every KGP request on the buildscript classpath through kotlin-gradle-plugins-bom, so a lower version left behind in a build file is lifted instead of failing. That makes the settings pin a good tool for a large repo where KGP versions are scattered across files. Two limits from the settings plugin docs: the property is incubating, and it does not reach buildSrc or included builds. Our buildSrc still had to declare 2.3.20 itself. The settings plugin version must also match your AGP version, so it moves with every AGP bump.
The upgrade order we are using

Each step builds on its own, so a failure points at one change.
- KGP first. Raise the root classpath, every
buildSrcand every included build that applies a Kotlin plugin to 2.3.20 or newer (we use 2.4.20). On AGP 9.5 and Gradle 9.6 this is a normal Kotlin bump. - Gradle 9.8.2 next. If
buildSrc:compileKotlinfails with “metadata is 2.4.0”, one of those plugin builds is still on 2.2.x. - AGP 9.6 last. If configuration fails with “AGP requires Kotlin Gradle plugin 2.2.10 or newer”, read the dependency paths; a third-party plugin may be the requester.
For React Native apps, step 1 includes node_modules/@react-native/gradle-plugin, which is an included build. Until React Native ships a Gradle plugin on KGP 2.3 or newer, that is a patch-package change, as in our AGP 9.6 alpha06 test. Version catalogs make the bump a one-line change; our version catalog porting guide shows the setup, and From AGP 8 to 9.5 covers the build-file changes that come before this one.
What to check in your own build
- Run
./gradlew -q buildEnvironmenttoday, on AGP 9.5, and search forkotlin-gradle-plugin:2.. Any line with an arrow such as2.2.0 -> 2.2.10is a request AGP 9.6 will reject. - Search for
kotlin("jvm") version,org.jetbrains.kotlin.jvmandkotlinVersioninbuildSrc,build-logicand anyincludeBuild(...)directory. - Search
gradle.propertiesforandroid.builtInKotlin=falseand build files forstrictly(. Both mean someone pinned an old compiler on purpose; find out why before AGP 9.6. - If you use KSP, check that its version is a 2.3.x release that is no longer tied to a Kotlin version.
These results are from AGP 9.6.0-alpha07. The AGP 9.6 rules may still move before the stable release, so check the release notes of later alphas before you upgrade.



