Android studio Android Studio-重复类。。。在模块中找到。。。和

Android studio Android Studio-重复类。。。在模块中找到。。。和,android-studio,gradle,compiler-errors,dependencies,Android Studio,Gradle,Compiler Errors,Dependencies,我到处找了好几个小时,但找不到任何符合我情况的解释 每次构建项目时,我都会遇到相同的错误: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules jetified-guava-20.0 (com.google.guava:guava:20.0) and jetified-listenablefuture-1.0 (com.google.guava:listenablefuture:1

我到处找了好几个小时,但找不到任何符合我情况的解释

每次构建项目时,我都会遇到相同的错误:

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

Go to the documentation to learn how to Fix dependency resolution errors.
但我完全不知道是哪些依赖导致了这种情况

dependencies {

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
def dynamicanimation_version = '1.0.0'
implementation "androidx.dynamicanimation:dynamicanimation:$dynamicanimation_version"
implementation 'com.plattysoft.leonids:LeonidsLib:1.3.2'
implementation 'com.ajts.androidmads.sqliteimpex:library:1.0.0'
implementation 'com.google.android.gms:play-services-ads:19.7.0'
implementation 'com.google.android.gms:play-services-auth:19.0.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.google.http-client:google-http-client-gson:1.26.0'
implementation('com.google.apis:google-api-services-drive:v3-rev136-1.25.0')
        {
            exclude group: 'org.apache.httpcomponents'
        }
}
搜索所有类时,我都可以看到它们: 但我仍然不知道这个问题是从哪里来的

我对这个比较陌生,所以我可能错过了一些信息。我可以提供您可能需要的任何其他代码或错误信息


欢迎您的任何意见,谢谢

我自己找到了答案。 事实证明,这与某些firebase实现有关

谷歌已经创建了一个软件包来应对这种情况 要解决此冲突,只需将其添加到您的应用程序级别
build.gradle

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