android-native-dev
What it does
This skill is a practical guide for building native Android apps with Kotlin and Compose. It is for developers who want a correct project setup and a clean, accessible design.
When to use it
- βWhen you start a new Android app from an empty folder.
- βWhen you need to fix an Android build error with Gradle.
- βWhen you want the app to follow Material Design 3 and accessibility rules.
Skill link
https://github.com/MiniMax-AI/skills/blob/main/skills/android-native-dev/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to start a new Android app in Kotlin with a home screen that follows Material Design 3.β
5 new skills a week. 1 minute to read.
How it works
The agent first checks the project state, then creates or completes the Gradle files and app structure. It makes sure the debug build works before adding app logic.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 assembleDebugsucceeds - If
gradle.propertiesis missing, create it first and configure AndroidX
1.1 Required Files Checklist
MyApp/
βββ gradle.properties # Configure AndroidX and other settings
βββ settings.gradle.kts
βββ build.gradle.kts # Root level
βββ gradle/wrapper/
β βββ gradle-wrapper.properties
βββ app/
β βββ build.gradle.kts # Module level
β βββ src/main/
β βββ AndroidManifest.xml
β βββ java/com/example/myapp/
β β βββ MainActivity.kt
β βββ res/
β βββ values/
β β βββ strings.xml
β β βββ colors.xml
β β βββ themes.xml
β βββ mipmap-*/ # App icons
2. Project Configuration
2.1 gradle.properties
# Required configuration
android.useAndroidX=true
android.enableJetifier=true
# Build optimization
org.gradle.parallel=true
kotlin.code.style=official
# JVM memory settings (adjust based on project size)
# Small projects: 2048m, Medium: 4096m, Large: 8192m+
# org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
Note: If you encounter
OutOfMemoryErrorduring build, increase-Xmxvalue. Large projects with many dependencies may require 8GB or more.
2.2 Dependency Declaration Standards
dependencies {
// Use BOM to manage Compose versions
implementation(platform("androidx.compose:compose-bom:2024.02.00"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.material3:material3")
// Activity & ViewModel
implementation("androidx.activity:activity-compose:1.8.2")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
}
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:
android {
// Define flavor dimensions
flavorDimensions += "environment"
productFlavors {
create("dev") {
dimension = "environment"
applicationIdSuffix = ".dev"
versionNameSuffix = "-dev"
// Different config values per flavor
buildConfigField("String", "API_BASE_URL", "\"https://dev-api.example.com\"")
buildConfigField("Boolean", "ENABLE_LOGGING", "true")
// Different resources
resValue("string", "app_name", "MyApp Dev")
}
create("staging") {
dimension = "environment"
applicationIdSuffix = ".staging"
versionNameSuffix = "-staging"
buildConfigField("String", "API_BASE_URL", "\"https://staging-api.example.com\"")
buildConfigField("Boolean", "ENABLE_LOGGING", "true")
resValue("string", "app_name", "MyApp Staging")
}
create("prod") {
dimension = "environment"
// No suffix for production
buildConfigField("String", "API_BASE_URL", "\"https://api.example.com\"")
buildConfigField("Boolean", "ENABLE_LOGGING", "false")
resValue("string", "app_name", "MyApp")
}
}
buildTypes {
debug {
isDebuggable = true
isMinifyEnabled = false
}
release {
isDebuggable = false
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
}
Build Variant Naming: {flavor}{BuildType} β e.g., devDebug, prodRelease
Gradle Build Commands:
# List all available build variants
./gradlew tasks --group="build"
# Build specific variant (flavor + buildType)
./gradlew assemble
FAQ
What should the agent check first?
The skill says to assess whether the folder is empty, has a Gradle wrapper, or is an incomplete project.
Does it need the Gradle wrapper?
The skill says to use the wrapper for builds and to create it if it is missing.
Does it cover accessibility?
Yes. The skill includes accessibility guidance for Android interfaces.
Details
Original description by the author
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.
repo: MiniMax-AI/skills
Popularity
- GitHub stars
- 14k
- Ranking position
- #11286
- License
- MIT
- Updated
- 4/18/2026
Comments
- β¦
More skills from this repository
design-style-skill
14kHelps your agent pick one consistent visual style for slides, from sharp and compact to soft, rounded or airy, with matching corners and spacing.
ppt-editing-skill
14kHelps your agent edit an existing PowerPoint file or template safely, by changing text, reordering or removing slides, and repacking a valid deck.
ppt-orchestra-skill
14kHelps your agent plan a full PowerPoint deck before building it, sorting each slide into a standard page type and checking variety and text quality.
slide-making-skill
14kHelps your agent write single PowerPoint slides in JavaScript with PptxGenJS, covering layout, text, images, charts, and fonts for native .pptx files.
Similar skills
android-clean-architecture
280kMakes your agent organize Android projects efficiently. It structures the code to make maintenance and new feature development easier.
compose-multiplatform-patterns
280kHelps your agent use Compose Multiplatform and Jetpack Compose patterns in KMP projects, covering state, navigation, theming, and performance.
dart-flutter-patterns
280kMakes your agent write code for Dart and Flutter apps. It uses modern patterns to create robust and manageable apps.