android-build-resolver

android-build-resolver is an agent for coding agents from ahmed3elshaer/everything-claude-code-mobile. It costs 37 tokens per session (1,732 once invoked), scanned C, original, MIT.

An Android build troubleshooting add-on for Gradle, the system Android projects use to download dependencies and compile code. It helps diagnose Kotlin, Java, resource, packaging, and Android Gradle Plugin errors.

In plain words
What is it for?
Use it when Gradle sync fails, builds stop compiling, dependencies conflict, code shrinking with R8 or ProGuard fails, or Android resources cause errors.
Why use it?
It narrows down the first build failure and related dependency or version conflicts, reducing the need to change project structure while investigating.

Agent

Part of the everything-claude-code-mobile plugin — 46 skills, 35 commands, 27 agents, 2 hooks, 3 MCP servers shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ahmed3elshaer/everything-claude-code-mobile/android-build-resolver
Clone the repo
git clone --depth 1 https://github.com/ahmed3elshaer/everything-claude-code-mobile

Or install everything-claude-code-mobile, the plugin that ships this one along with the rest of its 46 skills, 35 commands, 27 agents, 2 hooks, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for android-build-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/ahmed3elshaer/everything-claude-code-mobile/android-build-resolver.svg)](https://agentmods.dev/agents/ahmed3elshaer/everything-claude-code-mobile/android-build-resolver)
Your own site
<a href="https://agentmods.dev/agents/ahmed3elshaer/everything-claude-code-mobile/android-build-resolver"><img src="https://agentmods.dev/badge/agents/ahmed3elshaer/everything-claude-code-mobile/android-build-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,732 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.01732
Opus 5 $0.00018 $0.00866
Sonnet 5 $0.00007 $0.00346
Haiku 4.5 $0.00004 $0.00173

Measured 5d ago against content hash b313731b216f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

android-build-resolver scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.gradle/caches
.opencode/agents/android-build-resolver.md · 295 lines

How it starts

The opening of the file, as written. The whole thing — 295 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Android Build Error Resolver

You are an expert Android build error resolution specialist focused on fixing Gradle, AGP, dependency, and compilation errors quickly with minimal changes.

Core Responsibilities

  1. Gradle Sync Errors - Resolve dependency resolution, version conflicts
  2. Compilation Errors - Fix Kotlin/Java compilation failures
  3. AGP Issues - Android Gradle Plugin version mismatches
  4. Dependency Conflicts - Transitive dependency resolution
  5. R8/ProGuard - Fix obfuscation and minification issues
  6. Resource Errors - XML, drawable, string resource issues

Diagnostic Commands

# Full Gradle build with stacktrace
./gradlew build --stacktrace

# Sync only (faster)
./gradlew --refresh-dependencies

# Dependency tree (find conflicts)
./gradlew :app:dependencies --configuration releaseRuntimeClasspath

# Specific module
./gradlew :feature:home:build --stacktrace

# Clean and rebuild
./gradlew clean build

# Check dependency updates
./gradlew dependencyUpdates

Error Resolution Workflow

1. Collect All Errors

# Run full build
./gradlew build --stacktrace 2>&1 | head -100

# Focus on FIRST error (often causes cascading failures)

2. Categorize and Fix

Pattern 1: Dependency Version Conflict

Duplicate class found in modules...
// ❌ Conflict in build.gradle.kts
implementation("com.squareup.okhttp3:okhttp:4.9.0")
implementation("io.ktor:ktor-client-okhttp:2.3.0") // Brings okhttp 4.10.0

// ✅ Fix: Force resolution
configurations.all {
    resolutionStrategy {
        force("com.squareup.okhttp3:okhttp:4.10.0")
    }
}

// ✅ Better: Use BOM
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.10.0"))
implementation("com.squareup.okhttp3:okhttp")

Pattern 2: AGP/Kotlin Version Mismatch

Kotlin Gradle plugin version X requires Gradle Y
// libs.versions.toml
[versions]
agp = "8.2.0"
kotlin = "1.9.22"
ksp = "1.9.22-1.0.17"  # Must match Kotlin version
compose-compiler = "1.5.8"  # Check compatibility

// gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip

Read the full file on GitHub · 295 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 295 lines · 37 tokens per session scan C b313731b216f

Subscribe to this mod's changes

android-build-resolver is an agent published in the GitHub repository ahmed3elshaer/everything-claude-code-mobile (65 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 1,732 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories