如何解决此错误:无法访问com.google.android.gms.internal.zzbgl的zzbgl类文件

时间:2019-04-01 13:28:01

标签: android

当我运行程序时,我发现此错误 找不到com.google.android.gms.internal.zzbgl的类文件

apply plugin: 'com.android.application'
android {
    compileSdkVersion 28
   // buildToolsVersion '26.0.3'
    defaultConfig {
        applicationId "com.zone.zone1"
        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.test.espresso:espresso-core:2.2.2', {
       exclude group: 'com.android.support', module: 'support-annotations'
    })

    //noinspection GradleCompatible
    ///////////sdk///////
    implementation'com.android.support:cardview-v7:28.0.0'


    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation'com.google.firebase:firebase-database:16.1.0'
    implementation'com.google.firebase:firebase-auth:16.2.0'
    implementation 'com.google.firebase:firebase-storage:16.1.0'
    implementation 'com.google.android.gms:play-services-places:16.0.0'
    implementation'com.firebase:geofire-android:2.1.1'
    implementation'com.google.android.gms:play-services:12.0.1'
    implementation'com.github.bumptech.glide:glide:4.0.0'
    implementation'com.android.support:design:28.0.0'
    implementation 'com.github.jd-alexander:library:1.1.0'
    implementation 'com.google.firebase:firebase-core:16.0.8'
    implementation'com.paypal.sdk:paypal-android-sdk:2.15.3'
    implementation'junit:junit:4.12'





}

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

1 个答案:

答案 0 :(得分:0)

使用最新版本的Google Play服务,并对所有Google服务依赖项使用相同的版本。

使用此链接可获得最新版本https://mvnrepository.com/

编辑:

更改此

  implementation'com.google.android.gms:play-services:12.0.1'

对此

  implementation'com.google.android.gms:play-services:16.0.0'