Firestore:错误:程序类型已存在:com.google.android.gms.internal.measurement.zzeb

Firestore:错误:程序类型已存在:com.google.android.gms.internal.measurement.zzeb,android,firebase,google-cloud-firestore,Android,Firebase,Google Cloud Firestore,将Firestore core从16.0.4更新为16.0.5时出现错误: Error: Program type already present: com.google.android.gms.internal.measurement.zzeb 另一个错误的更新: Error: Program type already present: com.google.android.gms.internal.measurement.zzdz 更新: 到目前为止,Firestore核心16.0.5

将Firestore core从
16.0.4
更新为
16.0.5
时出现错误:

Error: Program type already present: com.google.android.gms.internal.measurement.zzeb
另一个错误的更新:

Error: Program type already present: com.google.android.gms.internal.measurement.zzdz

更新:

到目前为止,Firestore核心
16.0.5
没有显示任何内容,但在Android Studio中,它正在进行更新。因此,将其恢复为
16.0.4
,直到正式更新


更新11月14日

现在编译时会显示以下错误:

com.google.android.gms.internal.measurement.zzdx: can't find referenced method 'boolean zzfy()' in program class com.google.android.gms.internal.measurement.zzdz

com.google.android.gms.internal.measurement.zzeb: can't find referenced method 'void transactAndReadExceptionReturnVoid(int,android.os.Parcel)' in program class com.google.android.gms.internal.measurement.zzq

com.google.android.gms.internal.measurement.zzee: can't find referenced method 'void transactAndReadExceptionReturnVoid(int,android.os.Parcel)' in program class com.google.android.gms.internal.measurement.zzq

com.google.android.gms.internal.measurement.zzeh: can't find referenced method 'void transactAndReadExceptionReturnVoid(int,android.os.Parcel)' in program class com.google.android.gms.internal.measurement.zzq

com.google.android.gms.measurement.internal.zzez: can't find referenced method 'zzea(android.os.Looper)' in program class com.google.android.gms.internal.measurement.zzea

com.google.android.gms.measurement.internal.zzfu: can't find referenced method 'void zzb(android.os.Bundle)' in program class com.google.android.gms.internal.measurement.zzef

com.google.android.gms.measurement.internal.zzw: can't find referenced method 'zzea(android.os.Looper)' in program class com.google.android.gms.internal.measurement.zzea

there were 7 unresolved references to program class members.

Exception while processing task java.io.IOException: Please correct the above warnings first.
依赖项:

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
    // ViewModel and LiveData
    implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
    implementation 'androidx.lifecycle:lifecycle-common-java8:2.0.0'
    // Paging
    implementation 'androidx.paging:paging-runtime:2.0.0'
    // Android Room
    def room_version = "2.1.0-alpha02"
    implementation "androidx.room:room-runtime:$room_version"
    annotationProcessor "androidx.room:room-compiler:$room_version"
    // Jsoup
    implementation 'org.jsoup:jsoup:1.11.3'
    // Glide
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    annotationProcessor 'androidx.annotation:annotation:1.0.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
    // Firestore
    implementation 'com.google.firebase:firebase-core:16.0.5' //.4
    implementation 'com.google.firebase:firebase-firestore:17.1.3'
    implementation 'com.google.firebase:firebase-auth:16.0.5'
    // .4
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.firebase:firebase-ads:17.1.0'
    implementation 'com.firebaseui:firebase-ui-auth:4.2.1'
    // Crash Reports
//    implementation 'com.crashlytics.sdk.android:crashlytics:2.9.6'
}

apply plugin: 'com.google.gms.google-services'

更多


谷歌播放服务可以更新到com.Google.gms:googleservices:4.2.0


尝试并检查它是否有效:)

要解决此问题,请更改以下代码行:

implementation 'com.firebaseui:firebase-ui-auth:4.1.0'

并确保拥有最新版本的Google Play服务:

classpath 'com.google.gms:google-services:4.2.0'
还请添加以下依赖项:

implementation 'com.google.firebase:firebase-core:16.0.4'
在Android Studio中尝试了几次之后,它得到了修复

“多次尝试”的定义:

  • 将项目与Gradle文件同步
  • 再导入Gradle项目
  • 与文件系统同步
  • 使缓存无效/重新启动
  • 再重复一遍:(

现在我不知道哪一个确实有效,但对你来说
com.google.firebase:firebase core:16.0.6
发布了,它在更新时工作得非常好。

确保你的其他依赖项也更新了。所有更新尝试运行
gradle应用程序:依赖项
要找到冲突的:依赖项,请查找package
com.google.android.gms.internal
。Follow to dig。没有找到任何
com.google.android.gms.internal
,但找到了许多
。测量
不,它不起作用。顺便问一下,它是什么时候发布的,之前的
4.1.0
正在使应用程序崩溃。更多信息:已经在
谷歌服务:4.2.0
,更新使用
ui-auth
依赖项不起作用。嗨,Rajarshi!你尝试过我上面的解决方案了吗?没有,但是,我已经用最新的错误更新了帖子。使用上面的代码,你仍然会看到初始错误吗?是的,还可以看到第二次更新,firestore core 16.0.5尚未发布。
implementation 'com.firebaseui:firebase-ui-auth:4.2.1'
classpath 'com.google.gms:google-services:4.2.0'
implementation 'com.google.firebase:firebase-core:16.0.4'