# Conflict found for dependency 'com.google.guava:guava' between versions 30.1.1-jre and 31.0.1-jre. Resolve using dependency constraints or force a version.

- **ID:** `java/gradle-dependency-version-conflict`
- **Domain:** java
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Different modules in the project require different versions of the same dependency, causing a conflict.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 8+ | active | — | — |

## Workarounds

1. **Force a specific version using Gradle's resolution strategy** (95% success)
   ```
   configurations.all { resolutionStrategy.force 'com.google.guava:guava:31.0.1-jre' }
   ```
2. **Add a dependency constraint in build.gradle** (90% success)
   ```
   dependencies { constraints { implementation('com.google.guava:guava:31.0.1-jre') } }
   ```

## Dead Ends

- **Removing one of the conflicting dependencies without checking transitive dependencies** — The transitive dependency may still pull in the conflicting version. (85% fail)
- **Using compileOnly scope on one dependency** — compileOnly does not resolve the conflict at runtime; it only affects compilation. (80% fail)
