android - "Program type already present: com.google.android.gms.common.api.internal.zzb"如何解决 adMob 的这个问题?

标签 android admob

我使用的是 Android Studio 3.3(最新版本)。图书馆重复的问题应该是什么?这些是 Google AdMob 网站上显示的最新步骤。

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
    implementation 'androidx.core:core-ktx:1.1.0-alpha04'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'com.mikhaellopez:circularimageview:3.2.0'
    implementation 'com.github.aakira:expandable-layout:1.6.0@aar'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.gridlayout:gridlayout:1.0.0'

    implementation 'com.github.stfalcon:stfalcon-imageviewer:0.1.0'

    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'

    //UI
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.google.android.material:material:1.0.0'

    implementation 'xyz.belvi.mobilevision:barcodescanner:2.0.3'

    //adMob
    implementation 'com.google.android.gms:play-services-ads:17.1.1'

最佳答案

通过将 com.google.android.gms:play-services-ads 的版本降级到用于其他 google play 服务的版本来解决这个问题..

关于android - "Program type already present: com.google.android.gms.common.api.internal.zzb"如何解决 adMob 的这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54966095/

相关文章:

android - 如何在 WebView Android 应用程序中禁用 Google Adsense?

使用 google-play-services_lib 添加 admob 广告后 Android 应用程序大小增加

android - Admob 广告接收时的用户界面扭曲

android - 在 Eclipse 中创建新 keystore 时出错

android - 由于错误 -12,无法分配 CursorWindow

java - 如何在 Java (Android) 中从 AppEngine 解析 DateTime 属性?

android - 在 Android 中使用 HttpURLConnection 从 url 获取 xml

java - 让 ZXing 工作

android - 获得广告响应。错误代码 : 1

android - Admob - 横幅显示黑色背景且无广告