gradle-configuration

Configure Gradle builds for Android projects with Version Catalogs and Kotlin DSL.

7|2|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/javiercamarenatriguero/android-skills --skill gradle-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gradle-configuration
Source: https://github.com/javiercamarenatriguero/android-skills/tree/main/gradle-configuration
Command: npx skills add https://github.com/javiercamarenatriguero/android-skills --skill gradle-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of configuring Gradle builds in Android projects, providing a clear path to manage dependencies, optimize build performance, and ensure compatibility.

Core Features & Use Cases

  • Version Catalog Management: Centralize dependency versions in libs.versions.toml for a single source of truth.
  • Build Performance Optimization: Configure gradle.properties for parallel execution, caching, and configuration cache.
  • Dependency Conflict Resolution: Strategies for forcing versions and excluding transitive dependencies.
  • Use Case: When adding a new library or updating existing ones, use this Skill to ensure versions are managed correctly in the Version Catalog and to check for potential conflicts before committing.

Quick Start

Use the gradle-configuration skill to add the 'androidx.compose.ui:ui' dependency to the version catalog.

Frequently Asked Questions about gradle-configuration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I centralize dependency versions in a Gradle Version Catalog?

To centralize dependency versions in a Gradle Version Catalog, you define them in a `libs.versions.toml` file. This creates a single source of truth for managing library versions across your Android project.

What is the best way to resolve dependency conflicts in Android Gradle builds?

The best way to resolve dependency conflicts in Android Gradle builds is by forcing specific versions or excluding transitive dependencies. This ensures version alignment and prevents runtime crashes caused by duplicate classes.

How do I optimize Gradle build performance for Android projects?

You optimize Gradle build performance by configuring `gradle.properties` to enable parallel execution, caching, and the configuration cache. These settings significantly reduce build times for Android projects.

Does this Gradle configuration support Kotlin DSL for Android builds?

Yes, this Gradle configuration supports Kotlin DSL for Android builds. It guides users through using Kotlin DSL alongside Version Catalogs to ensure compatibility between AGP, Gradle, and Kotlin versions.

When do I need to check AGP and Kotlin version compatibility in Gradle?

You need to check AGP and Kotlin version compatibility in Gradle when adding new libraries or updating existing dependencies. This prevents build failures and ensures the Android Gradle Plugin aligns with your build environment.