本文介绍了在模块jetified-guava-26.0-android.jar中找到的重复类com.google.common.util.concurrent.ListenableFuture的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了错误

在模块jetified-guava-26.0-android.jar(com.google.guava:guava:26.0-android)和jetified-listenablefuture-1.0.jar( com.google.guava:listenablefuture:1.0)

转到文档以了解如何解决依赖关系解析错误.

更新后

从5.4.1升级到5.6.4

降级时问题解决了

这是firebase/firestore的错误吗?

解决方案

我认为部分问题是Android Studio(或者可能是Gradle插件,但是已处理)建议将Firestore依赖项的版本更新为21.4.1(可能取决于build.gradle中存储库的顺序-不确定).是的,似乎是21.4.1引起了问题.

是的,请忽略该建议,并将其保留为21.4.0.还有...

  1. Firebase文档显示21.4.0为正确版本.
  2. MVN存储库显示的最新版本为21.4.1 .
  3. Google Maven Repo 还将21.4.1列为最新版本.

I got errors

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)

Go to the documentation to learn how to Fix dependency resolution errors.

After update

to

and gradle 5.4.1 to 5.6.4

Problem solved when downgrade

to

Is this a bug of firebase/firestore?

解决方案

I think part of the issue is that Android Studio (or maybe the Gradle Plugin, however that is handled) is recommending to update the version of the Firestore dependency to 21.4.1 (likely depends on the order of repositories in your build.gradle - not sure on that). And yes, it seems that 21.4.1 causes the issue.

So yeah, just ignore that recommendation and leave it at 21.4.0. Also...

  1. Firebase Docs show 21.4.0 as the correct version.
  2. MVN Repository shows 21.4.1 as the latest release.
  3. Google Maven Repo also lists 21.4.1 as the latest release.

这篇关于在模块jetified-guava-26.0-android.jar中找到的重复类com.google.common.util.concurrent.ListenableFuture的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 12:42