/android-build:android-buildfrom android-build
Diagnoses and writes Android Gradle Plugin builds. Use for "Manifest merger failed", "Duplicate class found in modules", "Namespace not specified", minSdk conflicts with a library, resource linking failures, 16 KB page size warnings, or ClassNotFoundException or NoSuchMethodError only in the release build (keep rules). Covers the android {} block, build types, flavors, androidComponents, signing, desugaring, KSP and kapt, lint baselines and AGP, Gradle and JDK versions within a major.
Ships in android-build. 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.
Fix the error the build reports in the module that reports it, and keep variant names, application IDs and artifacts unless the request changes them.
Not for: AGP 8 to 9 migration (built-in Kotlin, new DSL, kapt move) (android-skills:agp-9-upgrade); keep-rule audits, broad or redundant rules and code shrinking (android-skills:r8-analyzer); APK or AAB size beyond R8, such as resources, native libraries and ABI splits (android-performance); Gradle providers, task wiring, configuration cache and dependency resolution, even inside an Android convention plugin (gradle); audits and "check my build" (gradle-skills:gradle-best-practices); uploading to Play (play-publishing); app code (android).
Generic Gradle practice (version catalog, Kotlin DSL, convention plugins, ./gradlew) is in gradle; this skill adds only what AGP changes.
gradle/wrapper/gradle-wrapper.properties and gradle.properties. Note the AGP, Gradle and Kotlin versions, and any android.* flags.com.android.* plugin it applies (application, library, dynamic-feature, test) and its namespace, compileSdk, minSdk and targetSdk../gradlew :app:assembleDebug --stacktrace. For manifest problems read app/build/outputs/logs/manifest-merger-<variant>-report.txt.namespace per module in the build file; the manifest package attribute is gone. applicationId belongs to application modules only.minSdk of an app must be at least that of every library it uses.androidComponents { onVariants { ... } }, not by iterating applicationVariants in afterEvaluate. Details in references/dsl.md.buildFeatures a module uses (buildConfig, viewBinding, compose, resValues); each is off by default in current AGP.~/.gradle/gradle.properties. Never write a keystore, a password or a keystore.properties into the repo; if one is already committed, say so and stop at telling the user to rotate it../gradlew :app:assembleDebug and the variant you touched assemble.minSdk conflicts, 16 KB alignment, lint.isMinifyEnabled = false, and never add -keep class ** or a whole-package keep.Pick the AGP, Gradle, JDK and Kotlin set from the compatibility table, not from "latest". Then hand the wrapper change to gradle-skills:gradle-wrapper-upgrade and name the exact Gradle version, because it picks the latest release when none is named and does not check AGP. See references/upgrades.md. For targetSdk, link the Play target API page rather than restating its numbers.
local.properties or Play service-account JSON.compileSdk or targetSdk as a side effect of a build fix; they change runtime behavior.build/.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin android-build