错误:程序类型已经存在:com.google.android.gms.internal.measurement.zzdz [英] Error: Program type already present: com.google.android.gms.internal.measurement.zzdz

查看:161
本文介绍了错误:程序类型已经存在:com.google.android.gms.internal.measurement.zzdz的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在该主题上看到了几篇类似的文章,但没有一篇适用于我的情况.我根据这些帖子收集到的信息可能是由我的Firebase依赖项之一引起的,但是我不确定如何解决此问题.清理,失效等已经完成,并且我所有的依赖项都已更新为最新版本.这是我的gradle文件:

I have seen several similar posts on this topic, but none of them apply to my case. I have gathered based on those posts that this is likely caused by one of my Firebase dependencies, but I am not sure how to troubleshoot this problem. Cleaning, invalidating, et al have already been done, and all of my dependencies have been updated to their latest versions. Here are my gradle files:

项目:

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath'com.google.gms:google-services:4.1.0'


    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

应用程序:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "org.andrewedgar.theo"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}



dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:support-v13:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:customtabs:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:support-media-compat:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:recyclerview-v7:28.0.0'

    implementation 'com.android.support:multidex:1.0.3'
    implementation 'android.arch.paging:runtime:1.0.1'

    implementation 'org.jetbrains:annotations:16.0.2'

    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.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.android.gms:play-services-ads:17.0.0'
    implementation 'com.google.android.gms:play-services-places:16.0.0'
    implementation 'com.google.android.gms:play-services-maps:16.0.0'

    implementation 'com.google.firebase:firebase-core:16.0.5'
    implementation 'com.firebaseui:firebase-ui-auth:4.2.0'
    implementation 'com.google.firebase:firebase-firestore:17.1.2'
    implementation 'com.firebaseui:firebase-ui-firestore:4.1.0'
    implementation 'com.google.firebase:firebase-auth:16.0.5'
    implementation 'com.google.firebase:firebase-ads:17.0.0'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
}


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

推荐答案

尝试将Firebase核心库降级到:

Try to downgrade firebase core library to:

implementation 'com.google.firebase:firebase-core:16.0.4'

如果这样做没有帮助,请尝试降级其他Firebase库.就我而言,它也是:

If it will not help, try to downgrade some another firebase libraries. In my case it was also:

implementation 'com.google.firebase:firebase-dynamic-links:16.1.2'

这篇关于错误:程序类型已经存在:com.google.android.gms.internal.measurement.zzdz的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆