Skip to content

Dependency conflict when resolving Gradle build #4

Description

@thesunwillriseup

I’m running into a dependency conflict in my Gradle project. When I try to build, Gradle fails with a version resolution error.

Steps to Reproduce:

Clone the repo

Run ./gradlew build

Observe dependency resolution error

Expected Behavior:
Gradle should resolve dependencies without conflict and complete the build successfully.

Actual Behavior:
Build fails with an error similar to:

Execution failed for task ':app:dependencies'.
Could not resolve all files for configuration ':app:runtimeClasspath'.
Conflict with dependency 'com.google.guava:guava' in project ':app'. 
Resolved versions for app (30.1-jre) and test (31.0.1-jre) differ.

Environment:

Gradle version: 8.5

Java version: 17

OS: macOS 14.3

Additional Context:
This started happening after adding com.google.firebase:firebase-core:21.1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions