尝试连接到FireStore数据库但获取“程序类型已存在:okio.Buffer $ 2”

问题描述 投票:1回答:1

我遇到了依赖关系的问题,某个地方我对okio.Buffer $ 2有一个双依赖关系,可能还有一个okio.AsyncTimeout(它已经出现在尝试解决问题但我无法隔离问题)。这是我的依赖项。

implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
//implementation 'com.android.support:support-v4:28.0.0'
//implementation 'com.android.support:customtabs:28.0.0'
//implementation 'com.android.support:support-media-compat:28.0.0'
//implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso core:3.0.2'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation files('ksoap2-android-assembly-3.6.3-jar-with-dependencies.jar')
implementation files('build/libs/unirest-java-1.4.10-SNAPSHOT withDependency-ShadedForAndroid.jar')
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-firestore:18.0.1'

我已经用尽了许多形式和尝试以及数小时。如果有人有任何想法请发表评论。该项目还实施了facebook登录,google登录和firestore。我相信其中一个正在提出这个问题。

java gradle google-cloud-firestore
1个回答
0
投票

可以从implementation中排除它:

implementation ("com.google.firebase:firebase-firestore:18.2.0") {
    exclude group: "com.squareup.okio"
}
© www.soinside.com 2019 - 2024. All rights reserved.