मुख्य सामग्री पर जाएँ
Skillpedia
मोबाइल ऐप14k · #11286

android-native-dev

यह क्या करती है

यह स्किल Kotlin और Compose से नेटिव Android ऐप बनाने की व्यावहारिक गाइड है। यह उन डेवलपर्स के लिए है जिन्हें सही प्रोजेक्ट सेटअप और साफ़, accessible डिज़ाइन चाहिए।

कब इस्तेमाल करें

  • ✓जब आप खाली फ़ोल्डर से नया Android ऐप शुरू करते हैं।
  • ✓जब आपको Gradle से जुड़ी Android build एरर ठीक करनी है।
  • ✓जब आप चाहते हैं कि ऐप Material Design 3 और accessibility नियमों का पालन करे।

Skill का लिंक

https://github.com/MiniMax-AI/skills/blob/main/skills/android-native-dev/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/MiniMax-AI/skills/blob/main/skills/android-native-dev/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं Kotlin में नया Android ऐप शुरू करना चाहता हूँ, जिसकी होम स्क्रीन Material Design 3 का पालन करे।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले प्रोजेक्ट की स्थिति जाँचता है, फिर Gradle फ़ाइलें और ऐप ढाँचा बनाता या पूरा करता है। ऐप लॉजिक जोड़ने से पहले वह पक्का करता है कि debug build चलती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल

एजेंट पहले क्या जाँचे?

स्किल कहती है कि देखें कि फ़ोल्डर खाली है, उसमें Gradle wrapper है, या प्रोजेक्ट अधूरा है।

क्या Gradle wrapper चाहिए?

स्किल कहती है कि build के लिए wrapper इस्तेमाल करें, और न हो तो उसे बनाएँ।

क्या इसमें accessibility शामिल है?

हाँ। स्किल में Android इंटरफ़ेस के लिए accessibility मार्गदर्शन है।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
14k
रैंकिंग में स्थान
#11286
लाइसेंस
MIT
अपडेट की गई
18/4/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

design-style-skill

14k

यह आपके एजेंट को स्लाइड के लिए एक एकसमान विज़ुअल स्टाइल चुनने में मदद करती है, तीखे और कॉम्पैक्ट से लेकर नरम, गोल या खुले तक, मेल खाते कोनों और spacing के साथ।

डिज़ाइनइंटरफ़ेस (UI/UX)

ppt-editing-skill

14k

यह आपके एजेंट को मौजूदा PowerPoint फ़ाइल या टेम्पलेट सुरक्षित रूप से बदलने में मदद करती है, टेक्स्ट बदलकर, स्लाइड का क्रम बदलकर या हटाकर, और सही डेक दोबारा पैक करके।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

ppt-orchestra-skill

14k

यह आपके एजेंट को बनाने से पहले पूरे PowerPoint डेक की योजना बनाने में मदद करती है, हर स्लाइड को मानक पेज प्रकार में रखकर और विविधता व टेक्स्ट गुणवत्ता जाँचकर।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

slide-making-skill

14k

यह आपके एजेंट को JavaScript में PptxGenJS से एकल PowerPoint स्लाइड लिखने में मदद करती है, नेटिव .pptx फ़ाइलों के लिए लेआउट, टेक्स्ट, इमेज, चार्ट और फ़ॉन्ट सहित।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

मिलती-जुलती skills