gpt4 book ai didi

java - 尝试连接到 FireStore 数据库但收到 "Program type already present: okio.Buffer$2"

转载 作者:太空宇宙 更新时间:2023-11-04 09:49:52 26 4
gpt4 key购买 nike

我遇到了依赖项问题,在某个地方我对 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。我相信这三个人之一正在提出这个问题。

最佳答案

可以将其从实现中排除:

implementation ("com.google.firebase:firebase-firestore:18.2.0") {
exclude group: "com.squareup.okio"
}

关于java - 尝试连接到 FireStore 数据库但收到 "Program type already present: okio.Buffer$2",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54921921/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com