【问题标题】:Error: Program type already present: com.google.android.gms.common.api.zza错误:程序类型已存在:com.google.android.gms.common.api.zza
【发布时间】:2019-04-07 01:00:42
【问题描述】:

我正在制作一个应用程序,我必须在其中检测 GAID 并显示 admob 广告。 当我尝试运行该应用程序时,它给了我这个错误

错误:程序类型已存在:com.google.android.gms.common.api.zza

这是我的依赖项

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    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.material:material:1.1.0-alpha04'
    implementation 'com.google.android.gms:play-services-ads:17.2.0'
    implementation 'com.google.android.gms:play-services-auth:9.0.0'
}

我正在尝试检查播放服务是否可用,但出现错误。
任何帮助将不胜感激。

【问题讨论】:

标签: android android-gradle-plugin google-play-services


【解决方案1】:

当我将 services-auth-9.0.0 更新到 services-auth-16.0.1 版本时,它才起作用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-07-25
    • 2019-09-04
    • 2020-10-13
    • 2019-05-22
    • 2020-03-26
    • 2019-05-03
    • 2018-09-07
    • 2020-02-15
    相关资源
    最近更新 更多