Skip to content
Skillpedia
Mobile apps14k Β· #11286

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.md

Copy 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

Use this skill to help me: https://github.com/MiniMax-AI/skills/blob/main/skills/android-native-dev/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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 assembleDebug succeeds
  • If gradle.properties is 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 OutOfMemoryError during build, increase -Xmx value. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills