When to use this skill
Use this skill whenever the user wants to:
- Develop Android apps with Kotlin, Activity/Fragment, Jetpack and UI
- Configure Gradle, dependencies, build variants and release
How to use this skill
- Project:Android Studio、Kotlin DSL;Activity、Fragment、ViewModel、LiveData/Flow。
- UI: ViewBinding/Compose, layouts, themes; navigation and permissions.
- Reference:https://developer.android.com/kotlin
Best Practices
- Lifecycle and state saving; background and power saving.
- Dependency injection and testing; ProGuard and security.
Keywords
android, Kotlin, Jetpack, mobile
Capability Boundaries
✅ Applicable Scenarios
- When you need to use the tech stack corresponding to this skill
- When the project needs to follow best practices
- When you need to get started quickly or deeply understand the core concepts
⚠️ Note
- Complex business logic needs to be adjusted according to specific scenarios
- Performance optimization needs to be evaluated based on the actual data volume
❌ Inapplicable Scenarios
- Irrelevant tech stacks or frameworks
- Special scenarios that require full customization
Common Pitfalls (Gotchas)
- Version Compatibility: Pay attention to the compatibility between framework versions and dependency libraries; APIs may differ across versions
- Configuration File Format: Configuration file format errors are the most common problem; it is recommended to use the editor's syntax check
- Environment Variables: Ensure all necessary environment variables are set correctly, and do not hardcode sensitive information
- Dependency Conflicts: Watch out for dependency conflicts when multiple versions coexist, and use a lock file to pin versions
- Performance Pitfalls: Pay attention to performance optimization in large-data-volume scenarios, and avoid common problems such as N+1 queries
Usage Workflow
Step 1: Environment Preparation
Ensure the necessary dependencies and tools are installed in the development environment.
Step 2: Configuration Initialization
Perform basic configuration according to project requirements.
Step 3: Core Functionality Usage
Implement the core functionality according to the example code.
Step 4: Test Verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and Release
After completing development, proceed with deployment and monitoring.