android-gradle

Diagnose Android Gradle and AGP failures by analyzing build scripts and dependency graphs.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill android-gradle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-gradle
Source: https://github.com/JCETools-Petra/JCE-Opencode-Tools/tree/main/config/skills/android-gradle
Command: npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill android-gradle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you diagnose and fix Android build failures caused by Gradle/AGP configuration issues, dependency resolution problems, and variant mismatches across multi-module projects.

Core Features & Use Cases

  • Gradle/AGP & configuration debugging: Pinpoint problems in build.gradle(.kts), settings.gradle(.kts), and libs.versions.toml.
  • Dependency graph analysis: Resolve duplicate classes, missing/could-not-resolve dependencies, and mismatched variants by inspecting the dependency tree.
  • Compatibility-focused fixes: Validate AGP/Kotlin/KSP compatibility before changing versions, and prefer dependencyInsight over blind excludes.
  • Multi-module build troubleshooting: Troubleshoot variant/build failures by tying findings to targeted Gradle tasks and evidence.

Quick Start

Ask your AI to analyze your Android Gradle build error log and identify the most likely dependency-graph or variant-mismatch cause, then propose minimal version/config changes with verification steps.

Frequently Asked Questions about android-gradle

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

FAQPage Schema
How do I fix duplicate classes and unresolved artifacts in my Android Gradle build?

Fix duplicate classes and unresolved artifacts by analyzing your dependency graph and version catalogs. Use dependencyInsight to find mismatched variants and duplicate dependencies, then apply minimal version or config changes to resolve the conflicts.

Why does my KSP or KAPT integration fail with variant mismatches in a multi-module Android project?

KSP and KAPT integration failures often stem from variant mismatches across multi-module projects. Diagnose these by tying findings to targeted Gradle tasks and verifying AGP, Kotlin, and KSP version compatibility before adjusting your build scripts.

How do I debug Gradle build failures caused by AGP configuration issues?

Debug AGP configuration failures by pinpointing problems in your build.gradle, settings.gradle, and libs.versions.toml files. Validate AGP, Kotlin, and KSP compatibility first, then run targeted assemble and dependencies tasks to verify the fixes.

What is the best way to resolve missing dependencies in an Android project without using blind excludes?

Resolve missing dependencies by preferring dependencyInsight analysis over blind excludes. Inspect your dependency tree to identify mismatched variants or version conflicts, then propose minimal configuration changes with verification steps.

Can I use this to troubleshoot both debug and release build variant failures in Android?

Yes, you can troubleshoot variant and build failures across both debug and release tasks. The process applies evidence-driven reasoning to analyze build scripts and dependency graphs, identifying the root cause of failures in your Android app or multi-module projects.