java - 在模块 jetified-guava-26.0-android.jar 中发现重复的类 com.google.common.util.concurrent.ListenableFuture

标签 java android firebase

我有错误

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

转到文档以了解如何修复依赖关系解析错误。

更新后

classpath 'com.android.tools.build:gradle:3.5.3'





classpath 'com.android.tools.build:gradle:3.6.1'



并将 5.4.1 升级到 5.6.4

降级时问题解决

implementation 'com.google.firebase:firebase-firestore:21.4.1'





implementation 'com.google.firebase:firebase-firestore:21.4.0'



这是firebase/firestore的错误吗?

最佳答案

更新 Firebase 后,我也遇到了这个问题。

通过将以下软件包添加到您的 build.gradle 来修复冲突

implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'

关于java - 在模块 jetified-guava-26.0-android.jar 中发现重复的类 com.google.common.util.concurrent.ListenableFuture,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60472354/

相关文章:

java - 无法访问自定义属性编辑器中的 JList 项

android - Firestore 如何在回收站 View 中从 firestore 检索数据

android - 来自 firebase 中多个国家的查询列表

android - 如何读取 firebase 中的纬度和经度以在 google maps android 中显示

JavaFX "endless" Pane

java - 在 Image Swing 上旋转矩形

java - 如何使用 JavaFX 打开 Excel 文件

android - 如何在 Lollipop 之前的设备中使用 background、backgroundTint 和 backgroundTintMode

java - NullPointerException - 位置为空?

java - 更改颜色选择器的大小