android-build-system

Configure and troubleshoot Android Gradle and Soong build files.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Binh230199/ai --skill android-build-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-build-system
Source: https://github.com/Binh230199/ai/tree/main/.github/skills/android-build-system
Command: npx skills add https://github.com/Binh230199/ai --skill android-build-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you configure, review, and troubleshoot Android build systems without guessing at dependency scopes, module wiring, signing, or variant setup.

Core Features & Use Cases

  • Gradle and Android Studio builds: Set up Kotlin DSL modules, version catalogs, convention plugins, KSP, and build variants with consistent shared build logic.
  • AOSP and Soong builds: Define Android.bp and Android.mk modules, choose certificates, place apps in the right partition, and add packages to product builds.
  • Practical troubleshooting: Diagnose build failures, dependency conflicts, sync issues, and packaging problems with clear next steps.
  • Use Case: When a team needs to add a new Android feature module or migrate an app from KAPT to KSP, this Skill helps produce the right build configuration and catch common mistakes early.

Quick Start

Ask the skill to review your Android module and generate the correct Gradle or Soong configuration for the build environment you are using.

Frequently Asked Questions about android-build-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Gradle build variants and signing in Android Studio?

Configure Gradle build variants and signing by setting up Kotlin DSL modules with convention plugins. This ensures consistent shared build logic and correct dependency scoping across your Android application modules.

How do I define an AOSP module in Android.bp for system partition installation?

Define AOSP modules in Android.bp by specifying Soong build rules, choosing appropriate certificates, and setting partition placement. This correctly scopes your package and adds it to product builds.

What is the best way to migrate an Android project from KAPT to KSP?

Migrating from KAPT to KSP involves updating your Gradle Kotlin DSL build files to apply the KSP plugin. This Skill generates the correct configuration and catches common migration mistakes early.

Why does my Gradle sync fail after adding a new Android feature module?

Gradle sync failures often stem from dependency conflicts or incorrect module wiring. Review your version catalogs and convention plugins to diagnose sync issues and resolve packaging problems.

Can I use version catalogs to manage dependencies across multiple Android modules?

Yes, version catalogs manage dependencies across multiple Android modules. They centralize dependency versions in Gradle Kotlin DSL builds, ensuring consistent dependency scoping and reducing sync conflicts.

When should I use Soong instead of Android.mk for AOSP builds?

Use Soong Android.bp files for new AOSP module definitions instead of Android.mk. Soong provides modern build logic, proper dependency scoping, and streamlined partition placement for system applications.