You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Gradle users: Module 'com.google.guava:guava' has been rejected. Cannot select module with conflict on capability 'com.google.guava:listenablefuture:1.0' also provided by [com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava(runtime)]
#9715
Closed
suztomo opened this issue
Jul 31, 2023
· 1 comment
When you build a Gradle project with Cloud Java libraries that have recent Guava version 32.0 and 32.1, they may encounter the following error:
12:03:19 > Module 'com.google.guava:guava' has been rejected:
12:03:19 Cannot select module with conflict on capability 'com.google.guava:listenablefuture:1.0' also provided by [com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava(runtime)]
This happens because Cloud Java libraries declare com.google.guava:listenablefuture (Guava's dependency), which conflicts with Guava's com.google.guava:listenablefutureGradle capability.
We're working on a fix so that Gradle users do not need to update their build.gradle and use Cloud Java client libraries. ETA is within 2 weeks. We'll update the release information here.
The text was updated successfully, but these errors were encountered:
Problem
When you build a Gradle project with Cloud Java libraries that have recent Guava version 32.0 and 32.1, they may encounter the following error:
This happens because Cloud Java libraries declare
com.google.guava:listenablefuture
(Guava's dependency), which conflicts with Guava'scom.google.guava:listenablefuture
Gradle capability.Temporary Workaround
For a temporary workaround, please see Guava's release note https://github.com/google/guava/releases/tag/v32.1.0. Adding the following lines to your build.gradle resolves the issue:
Long-term fix is coming
We're working on a fix so that Gradle users do not need to update their
build.gradle
and use Cloud Java client libraries. ETA is within 2 weeks. We'll update the release information here.The text was updated successfully, but these errors were encountered: