In short.
AGP 9 Upgrade is a coding assistant skill for Android developers migrating to Android Gradle Plugin 9, but its documented checks do not establish that the resulting app builds and works. Its instructions connect dependency updates, built-in Kotlin, the new build configuration interfaces, annotation processing and BuildConfig changes. Kotlin Multiplatform projects are excluded. The captured references contain conflicting Paparazzi version advice and a kapt example that needs careful interpretation. No executed migration results establish reliability, completion time or performance benefits.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete captured build-system/agp/agp-9-upgrade folder: SKILL.md and its six reference files, plus the repository-level LICENSE.txt at revision c72942584fff970dac86ced78b367fce0c441e52. Excludes the rest of android/skills, linked external recipe implementations, linked installation pages and project-specific dependencies. No code or commands were executed; installation, migration outcomes, compilation, tests, runtime behavior, performance and operating costs remain unassessed.
The overview
Resource identity
The resource is agp-9-upgrade in the android/skills repository, under build-system/agp/agp-9-upgrade. Its metadata credits Google LLC. It consists of SKILL.md and six reference documents that guide an assistant through Android build configuration changes.
The captured source is pinned to revision c72942584fff970dac86ced78b367fce0c441e52. The corresponding folder is available at [https://github.com/android/skills/tree/c72942584fff970dac86ced78b367fce0c441e52/build-system/agp/agp-9-upgrade].
Practical assessment
The skill is useful when an AGP upgrade affects more than a version number. It brings together changes that otherwise span Kotlin configuration, custom Gradle plugins, generated code and third-party build tools.
Its strongest feature is a concrete migration sequence with references for specific failure points. Its main weakness is limited validation: IDE sync, Gradle help and a dry-run build cannot establish successful compilation, passing tests or correct application behavior. Migration success rates and time savings are unknown.
Who it fits
The intended users are developers maintaining non-Kotlin Multiplatform Android projects. It is particularly relevant to projects with custom build logic, annotation processors, additional Kotlin source directories or custom BuildConfig fields.
Beginners get an ordered explanation of the migration, but still need help understanding project-specific Gradle changes and failures. Experienced developers get pointers for replacing removed APIs and updating convention plugins. Kotlin Multiplatform projects require a different migration resource.
What it covers
The instructions cover conditional KSP and Hilt updates, removal of the separate Kotlin Android plugin, migration from android.kotlinOptions to kotlin.compilerOptions, and changes to Kotlin source directory registration. They also cover replacing kapt with KSP where supported, or using com.android.legacy-kapt for remaining processors.
For custom build logic, the references explain replacing legacy variant APIs with androidComponents APIs and using public interfaces instead of AGP internals. Additional guidance covers enabling BuildConfig generation, quoting custom String values, renaming APK artifacts through recipes, removing migration flags and handling Paparazzi compatibility problems.
Using it
Requirements and compatibility
The skill excludes Kotlin Multiplatform projects. Its main migration sequence assumes AGP is already version 9 or higher, with a separate preliminary procedure for older versions.
The bundled AGP 9.0 compatibility table specifies minimum versions of Gradle 9.1.0, JDK 17 and Android SDK Build Tools 36.0.0. It lists Kotlin Gradle plugin 2.2.10 as the minimum and default, and API level 36.1 as the maximum supported Android API level. These are AGP 9.0 requirements; requirements for other AGP releases are not established by that table.
When those dependencies are present, the skill requires KSP 2.3.6 or higher and Hilt 2.59.2 or higher. Third-party Gradle plugins must also support the target AGP APIs. Exact assistant host versions and installation requirements are not specified.
How the skill works
The skill supplies instructions and reference material for an assistant. It first directs the assistant to inspect the project's AGP version. Below version 9, its default procedure pauses for the developer to use Android Studio's AGP Upgrade Assistant and confirm completion. If the developer explicitly skips that prerequisite, the skill directs the assistant to update AGP during the migration.
The subsequent sequence updates dependencies, migrates Kotlin and build APIs, handles annotation processors and BuildConfig, and removes four migration-related Gradle properties. For difficult API replacements, it points to version-matched branches of the Android Gradle Recipes repository.
Its agent instructions prohibit Python scripts and the Gradle clean task during verification, restrict dependency-cache searches to a last resort, and forbid adding android.disallowKotlinSourceSets=false.
Getting started
The assistant needs access to SKILL.md and its relative reference files. The bundled release notes link to Android Studio's skills feature at [https://developer.android.com/studio/gemini/skills], but the captured folder does not contain a complete host installation procedure.
Before applying the migration, identify the project's AGP version, target release, toolchain and affected plugins. Check whether it uses KSP, Hilt, kapt, Paparazzi, custom BuildConfig fields or legacy variant APIs. The recipe reference maps AGP 9.0.x, 9.1.x and 9.2.x to the corresponding agp-9.0, agp-9.1 and agp-9.2 branches.
Illustrative migration
Consider a non-KMP Android module already on AGP 9 that still applies org.jetbrains.kotlin.android and configures android.kotlinOptions. The documented migration removes the separate Kotlin Android plugin from applicable module, root and version-catalog declarations, then moves compiler settings to kotlin.compilerOptions. Additional Kotlin source directories move to the Kotlin source set inside android.sourceSets.
If the module also uses kapt, processors with KSP support move to KSP; remaining kapt dependencies use com.android.legacy-kapt. A custom String BuildConfig field needs quotation marks inside its stored value because that value is written literally into generated code. This is an illustrative edit sequence, with no executed result.
Assessment & evidence
Limitations and conflicting guidance
KMP projects are explicitly unsupported. Custom and third-party plugins can depend on APIs removed by AGP 9, and the release notes acknowledge that some old APIs have no direct replacement. The actual Gradle Recipes implementations are external to the captured folder.
The Paparazzi reference recommends version 2.0.0-alpha04 or higher, but also says alpha04 and earlier are incompatible with Gradle 9 without workarounds, and that no newer version existed when it was written. Updating to alpha04 alone is therefore not an established fix. Its proposed workaround disables HTML test reports in each Paparazzi-enabled module, sacrificing those reports.
The built-in Kotlin guide says to replace kotlin-kapt, but its displayed plugin blocks contain both the old and replacement aliases. The dedicated kapt reference explicitly requires removing org.jetbrains.kotlin.kapt. Copying both aliases would conflict with that instruction.
The prescribed verification does not compile or package the application and does not establish passing tests, runtime correctness or screenshot compatibility.
Why the approach matters
The migration order addresses connected changes: AGP 9 enables built-in Kotlin, the new build configuration interfaces exclude older integrations, and annotation processors may require another plugin. Treating these as related changes helps explain why updating only the AGP version can leave a project broken.
Using public APIs and recipes matched to the target AGP release is a coherent approach to custom build logic. This supports using the skill as migration guidance, while the incomplete validation and conflicting examples limit confidence in unattended completion.
Related alternatives
Android Studio's AGP Upgrade Assistant is the documented starting point for updating older projects. The release notes describe its ability to preserve existing behavior where appropriate, which may help developers stage the transition to new defaults. It is available at [https://developer.android.com/build/agp-upgrade-assistant].
Developers can also apply the migration documentation manually without loading this skill. For KMP projects, the bundled release notes point to JetBrains' kotlin-tooling-agp9-migration skill at [https://github.com/Kotlin/kotlin-agent-skills/tree/main/skills/kotlin-tooling-agp9-migration]. That separate skill's contents, compatibility and outcomes are not assessed here.
Evidence and its limits
The source material comprises the skill definition, six bundled references and the repository-level Apache license, all captured from revision c72942584fff970dac86ced78b367fce0c441e52. The references cover built-in Kotlin, AGP 9.0 release notes, BuildConfig, KSP and kapt, Paparazzi, and Gradle Recipes.
These files establish the intended migration procedure and documented compatibility constraints. They provide no executed migration, IDE sync, build, test or benchmark results. Linked recipe implementations, assistant installation documentation and project-specific dependency artifacts are outside this captured material.
Access & freshness
Costs
The supplied Apache 2.0 license grants no-charge, royalty-free rights for the covered work under its terms. This does not establish the total cost of using the skill.
Assistant subscriptions, model usage, build infrastructure, developer time and support costs are not specified. Total operating cost and any savings are unknown.
Use and redistribution rights
SKILL.md refers to LICENSE.txt, and the captured repository license is Apache License 2.0. It permits reproduction, modification and redistribution, including commercial use, subject to its conditions.
Redistribution requires a copy of the license, retention of relevant source notices, prominent notices on modified files and applicable NOTICE attributions if the work includes them. The license includes a limited patent grant with termination conditions, does not grant general trademark rights, and provides the work without warranties.
The captured license is available at [https://raw.githubusercontent.com/android/skills/c72942584fff970dac86ced78b367fce0c441e52/LICENSE.txt].
Version and date context
SKILL.md declares a last-updated date of 2026-11-10. The source snapshot was captured on 2026-11-15 at 18:01:56 UTC. That metadata does not establish when each bundled reference was last revised.
The skill requests the latest stable AGP without pinning that release. Its bundled release notes recommend AGP 9.0.1, also mention AGP 9.4, and contain a projected AGP 10.0 opt-out removal date of mid-2026. These statements do not establish the currently latest stable release or whether that projected change occurred. The current latest Paparazzi release is also unknown.
Recommended next steps
Confirm that the project is outside KMP, choose the intended AGP release and verify its exact toolchain requirements. Check affected third-party plugins and annotation processors, use the matching recipe branch, and resolve the Paparazzi and kapt ambiguities before relying on those examples.
Review the resulting build changes, including removal of migration flags. The skill calls for successful Gradle IDE sync, ./gradlew help and ./gradlew build --dry-run. Establishing a completed migration also requires an actual build and the project's relevant tests, including device or screenshot tests where applicable. No results for these actions are available.
