Agent skill · bighardperson
android-native-dev
Android native application development and UI design guide. Covers Material Design 3, Kotlin/Compose development, project configuration, accessibility, and build troubleshooting. Read this before Android native application development.
What it needs
About 10k tokens when loaded.
What this skill does
1. Project Scenario Assessment Before starting development, assess the current project state: Scenario Characteristics Approach ---------- ----------------- ---------- Empty Directory No files present Full initialization required, including Gradle Wrapper Has Gradle Wrapper gradlew and gradle/wrapper/ exist Use ./gradlew directly for builds Android Studio Project Complete project structure, may lack wrapper Check wrapper, run gradle wrapper if needed Incomplete Project Partial files present Check missing files, complete configuration Key Principles: Before writing business logic, ensure ./gradlew assembleDebug succeeds If gradle.properties is missing, create it first and configure AndroidX 1.1 Required Files Checklist --- 2. Project Configuration 2.1 gradle.properties Note: If you encounter OutOfMemoryError during build, increase -Xmx value. Large projects with many dependencies may require 8GB or more. 2.2 Dependency Declaration Standards 2.3 Build Variants & Product Flavors Product Flavors allow you to create different versions of your app (e.g., free/paid, dev/staging/prod). Configuration in app/build.gradle.kts: Build Variant Naming: {flavor}{BuildType} → e.g., devDebug, prodRelease Gradle Build Commands: Access BuildConfig in Code: Note: Starting from AGP 8.0, BuildConfig is no longer generated by default. You must explicitly enable it in your build.gradle.kts: Flavor-Specific Source Sets: Multiple Flavor Dimensions (e.g., environment + tier): --- 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills bighardperson/Android 原生开发