Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -28% | 0% |
Step-by-step workflow for upgrading an Android project to AGP 9.
com.google.devtools.ksp) is used, ensure version 2.3.6+.AGP 9 includes built-in Kotlin support — the org.jetbrains.kotlin.android plugin is no longer needed.
See migration guide for detailed steps.
AGP 9 introduces a new DSL for android {} blocks. Key changes include namespace handling, build type configuration, and source set declarations.
See DSL migration for before/after examples.
If the project uses kapt:
legacy-kapt as a bridge.If any module uses custom BuildConfig fields, update to the new AGP 9 syntax.
Remove these flags after migration:
android.builtInKotlinandroid.newDslandroid.uniquePackageNamesandroid.enableAppCompileTimeRClassandroid.disallowKotlinSourceSets=false to gradle.properties.clean task when verifying — it wastes time../gradlew help succeeds../gradlew build --dry-run succeeds.Other measured skills in the registry, with their headline benchmark lift.