/android-kotlin:agp-9-upgradefrom android-kotlin
Upgrades, or migrates, an Android project to use Android Gradle Plugin
Ships in android-kotlin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
See the AGP 9 migration guide for the major changes, many breaking, in AGP 9 compared to AGP 8.
If the user requests to update or migrate to AGP 9, first check the AGP version used in the project. If it is lower than 9, stop and ask the user to run the AGP Upgrade Assistant in Android Studio to update to the latest stable version of AGP, and confirm when done. The user may also request that this requirement be skipped; if this is the case, you should update the version of AGP to the latest stable version as part of the AGP 9 migration. See the AGP 9 migration guide for how to do this.
Each version of AGP has its own set of compatibilities with other tools, such as Gradle, JDK, and Kotlin. The release notes for each of these versions will include a Compatibility table indicating the minimum versions for these tools.
Do not use this skill for KMP projects, as they are unsupported.
If AGP is already at 9 or higher, then do the following:
If KSP (com.google.devtools.ksp) is used in the project, ensure it is on
version 2.3.6 or higher.
If Hilt is used in the project, ensure it is on version 2.59.2 or higher.
See the guide for detailed information.
See the guide for detailed information.
See also gradle-recipes for examples on how to migrate old code to code that is compatible with AGP 9 and the new DSL.
If KSP (com.google.devtools.ksp) or kapt (org.jetbrains.kotlin.kapt) are
used in the project, see KSP, kapt, and legacy-kapt for detailed migration
steps.
If any Android module contains custom BuildConfig fields, see BuildConfig for detailed information.
After the migration, check gradle.properties. Remove the following flags:
Additionally, delete all temporary files you've created.
android.disallowKotlinSourceSets=false to gradle.properties.clean task. This is a waste of time.After migration, verify the following:
./gradlew help succeeds../gradlew build --dry-run succeeds.Paparazzi v2.0.0-alpha04 and lower versions have issues with AGP 9. See references/paparazzi-gradle-9.md for details.
LICENSE (opens in a new tab)SOURCE.md (opens in a new tab)references/android/build/migrate-to-built-in-kotlin.md (opens in a new tab)references/android/build/releases/agp-9-0-0-release-notes.md (opens in a new tab)references/buildconfig.md (opens in a new tab)references/ksp-kapt.md (opens in a new tab)references/paparazzi-gradle-9.md (opens in a new tab)references/recipes.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/adaptiveInstructions to make or update an app's UI so that it adapts to different/android-intent-securityAudits, detects, and remediates Android Intent and component security/anr-audit-and-fixAudits Android codebases for ANR risks and diagnoses ANR stack dumps./edge-to-edgeUse this skill to migrate your Jetpack Compose app to add adaptive edge-to-edge/jetpack-compose-performanceDiagnose and optimize Android Jetpack Compose UI code. Use this skill/kotlin-tooling-agp9-migrationMigrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+. Handles plugin replacement (com.android.kotlin.multiplatform.library), module splitting, DSL migration, and the new default project structure. Use when upgrading AGP, when build fails due to KMP+AGP incompatibility, or when the user mentions AGP 9.0, android multiplatform plugin, KMP migration, or com.android.kotlin.multiplatform.library.npx claudepluginhub fcakiroglu16/marketplace --plugin android-kotlin