question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate class ListenableFuture after update

See original GitHub issue

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 3.6.1
  • Firebase Component: Firestore
  • Component version: 21.4.1

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

After update Firebase BoM to 25.0.0 build failed:

Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules jetified-guava-26.0-android.jar (com.google.guava:guava:26.0-android) and jetified-listenablefuture-1.0.jar (com.google.guava:listenablefuture:1.0)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
PromanSEWcommented, Mar 19, 2020

@drusak use this line instead:

implementation "com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava"
0reactions
schmidt-sebastiancommented, Mar 20, 2020

The next release of Firestore will drop all direct dependencies on Guava, but our network stack continues to rely on Guava for some of its functionality. We are evaluating moving the network stack off of Guava too, but this will be very long process. Until that happens, issues like the one here will happen from time to time. Note that these conflicts are not Firebase specific, but can happen with any number of packages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Duplicate class com.google.common.util.concurrent ...
Version 27.0.1 worked for me after getting "Cannot access class 'com.google.common.util.concurrent.ListenableFuture'." error with io ...
Read more >
Duplicate class com.google.common.util ... - Google Groups
The latest version is 30.0-jre or 30.0-android, which depends on version 9999.0-empty-to-avoid-conflict-with-guava of listenablefuture, which is empty. See ...
Read more >
Duplicate class com.google.common.util.concurrent ...
configurations { // Resolves dependency conflict caused by some dependencies use // com.google.guava:guava and com.google.guava:listenablefuture together.
Read more >
Duplicate class com.google.common.util.concurrent ...
Coding example for the question Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-26.0-android.jar.
Read more >
[SOLVED] Flutter : Duplicate class com.google.common.util ...
concurrent.ListenableFuture found in modules guava-20.0.jar. Problem. Launching lib\main.dart on sdk gphone x86 in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found