# Gradle Duplicate Class Fixer for Android Builds

> Turns a wall of "Duplicate class ... found in modules" errors into the one to three causes behind it, shows which dependency pulls each side in, and writes the build.gradle.kts fix.

Gradle Duplicate Class Fixer for Android Builds is a paid AI agent skill on Agensi by Singgih Rochmad Saputro, in Mobile Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Singgih Rochmad Saputro](https://www.agensi.io/creators/singgihrs)
- Category: [Mobile Development](https://www.agensi.io/skills/mobile-development)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gradle-duplicate-class-fixer-for-android-builds
- Tags: mobile-development, devops-cloud, testing-debugging

## About this skill

A "Duplicate class" error means two jars on the runtime classpath contain the same
class. Gradle prints every class, often hundreds of lines, which hides the fact that
there are usually only one to three causes. This skill groups them, explains each,
and gives the smallest build change that removes one side.

1. **The failing build output**, as text. From Android Studio's Build window
   (switch to the text view) or from the terminal:

2. **The dependency tree** for the same variant (strongly recommended; without it the
   skill can't say which of your dependencies brings each side):

Use `releaseRuntimeClasspath` if the release build is the one failing, and the
   module that fails (`:app` is the usual one).

## Requires

- Python 3.8+
- Optional: Gradle project (to get the dependency tree)

## Known limitations

Prefers aligning versions over excluding modules, because an exclude can remove classes a library needs at runtime; excludes are the fallback for unknown pairs. Old AGP versions print module names without Maven coordinates, so the report says less for them. The script does not read your build files: the agent writes the edit in your style (Kotlin DSL, Groovy or version catalog).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Gradle Duplicate Class Fixer for Android Builds skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Gradle Duplicate Class Fixer for Android Builds do?

Turns a wall of "Duplicate class ... found in modules" errors into the one to three causes behind it, shows which dependency pulls each side in, and writes the build.gradle.kts fix.

### Which AI agents support Gradle Duplicate Class Fixer for Android Builds?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Gradle Duplicate Class Fixer for Android Builds?

Connect your AI agent to Agensi through MCP, then ask it to use Gradle Duplicate Class Fixer for Android Builds on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
