gradle-build-performance

Diagnoses Android Gradle build bottlenecks via build scan analysis and optimization.

119|14|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/rcosteira79/android-skills --skill gradle-build-performance-rcosteira79
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gradle-build-performance
Source: https://github.com/rcosteira79/android-skills/tree/main/skills/gradle-build-performance
Command: npx skills add https://github.com/rcosteira79/android-skills --skill gradle-build-performance-rcosteira79

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses slow Android and Gradle build times, helping developers diagnose and resolve performance bottlenecks to significantly speed up their development cycles.

Core Features & Use Cases

  • Build Scan Analysis: Generate and interpret build scans to pinpoint slow phases (configuration, execution, dependency resolution).
  • Performance Optimization: Apply proven techniques like enabling configuration and build caches, migrating kapt to KSP, optimizing task configuration, and managing JVM heap.
  • Use Case: When your daily builds take over 10 minutes, use this skill to analyze a build scan, identify that configuration is the bottleneck, and apply the configuration cache to reduce subsequent build times by 50%.

Quick Start

Use the gradle-build-performance skill to diagnose slow Android Gradle builds by generating and analyzing a build scan.

Frequently Asked Questions about gradle-build-performance

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

FAQPage Schema
How do I speed up slow Android Gradle builds?

Speed up slow Android Gradle builds by generating a build scan to diagnose bottlenecks across configuration, execution, or dependency resolution phases, then applying targeted optimizations like enabling caches and tuning the JVM heap.

How does a Gradle build scan identify performance bottlenecks?

A Gradle build scan identifies performance bottlenecks by analyzing build metrics to pinpoint slow phases, allowing you to see exactly where configuration, execution, or dependency resolution time is being consumed during your Android build.

What's the best way to migrate from kapt to KSP for faster build performance?

Migrating from kapt to KSP improves build performance by replacing slower annotation processing with a faster, Kotlin-first plugin, significantly reducing the execution time required for processing your Android project's code generation tasks.

When should I enable the Gradle configuration cache to reduce build times?

Enable the Gradle configuration cache when build scans show the configuration phase is your bottleneck; it caches the task graph, avoiding repeated project setup and substantially reducing subsequent build times for your Android app.

Can I optimize Gradle dependency resolution for Android projects?

Yes, you can optimize Gradle dependency resolution by analyzing build scans to identify resolution bottlenecks, then applying performance techniques like caching to reduce the time spent fetching and resolving external libraries during builds.

How do I tune the JVM heap to improve Gradle build performance?

Tune the JVM heap to improve Gradle build performance by adjusting memory allocation settings, which prevents garbage collection overhead and ensures sufficient memory for demanding Android build and execution tasks.