بنقرة واحدة
android-gradle-expert
Use when configuring Gradle builds, managing dependencies, or modularizing Android applications.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when configuring Gradle builds, managing dependencies, or modularizing Android applications.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Handling Bluetooth Low Energy, flow wrappers, and Android 12+ permissions.
Seamless integration of CameraX with Google ML Kit for vision tasks.
Deep-dive skills for banking and healthcare apps.
Use when integrating Google Gemini Nano via AICore for on-device ML.
Automated UIAutomator tests and Hardware mocking setup.
Expanding KMP shared UI to cover Compose Multiplatform edge-cases.
| name | android-gradle-expert |
| description | Use when configuring Gradle builds, managing dependencies, or modularizing Android applications. |
| category | development |
| risk | low |
| source | community |
| date_added | 2026-03-31 |
| metadata | {"triggers":["@gradle","build-gradle","version-catalog","gradle-modularization","build-variants"]} |
The ultimate guide to modern, efficient, and modular Android builds with Gradle Kotlin DSL and Version Catalogs.
Before starting any Gradle configuration, ensure the following core files are present and properly configured:
gradle-wrapper.properties (8.4+)distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zipgradle.properties (AndroidX & Performance)Role: Enabling Modern Android support and build performance.
Mandatory:
android.useAndroidX=true
android.enableJetifier=true
org.gradle.parallel=true
org.gradle.caching=true
libs.versions.toml)Rule: Never hardcode versions in build.gradle.kts. Use the catalog.
Structure:
[versions]
compose = "1.6.0"
kotlin = "2.0.0"
[libraries]
compose-ui = { group = "androidx.compose.ui", name = "ui", version.ref = "compose" }
[plugins]
android-app = { id = "com.android.application", version = "8.3.0" }
.kts)build-logic) to share common build logic (e.g., Compose setup, Hilt, Room).When scaffolding a new Compose project, ensure these are added to prevent compilation/runtime errors:
io.coil-kt:coil-composeandroidx.hilt:hilt-navigation-composeandroidx.compose.material3:material3-window-size-classandroidx.biometric:biometric (use androidx, NOT android.hardware.biometrics for UI prompts)org.gradle.configuration-cache=true.org.gradle.parallel=true.org.gradle.daemon=true.proguard-android-optimize.txt and keep domain models/API DTOs if necessary.
buildTypes {
release {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
testOptions for unit tests and instrumented tests.composeCompiler in libs.versions.toml (e.g., 1.5.10 for Kotlin 1.9.22).app/build.gradle.kts: kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get().