当前位置: 首页 > 知识库问答 >
问题:

在路径:DexPathList上没有找到类“com.google.android.gms.common.internal.zzbq”

端木飞
2023-03-14
apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion '26.0.1'
    defaultConfig {
        applicationId "com.mystorie.totheworld"
        minSdkVersion 17
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

        // Enabling multidex support.
        multiDexEnabled true

        aaptOptions { cruncherEnabled = false }

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dexOptions { javaMaxHeapSize "4g" }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile 'com.squareup.okhttp3:okhttp:+'
    //noinspection GradleCompatible
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.parse:parse-android:+'
    compile 'com.parse.bolts:bolts-android:1.+'
    //noinspection GradleCompatible
    compile 'com.google.android.gms:play-services:+'
    compile 'com.google.android.gms:play-services-ads:+'
    compile 'de.hdodenhof:circleimageview:2.2.0'
    compile 'com.facebook.android:facebook-android-sdk:4.+'
    compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'
    compile 'com.google.android.gms:play-services-gcm:+'
    testCompile 'junit:junit:4.12'
}

共有1个答案

蒋阳华
2023-03-14

这是因为您有多个版本的Google Play服务,它们具有以下依赖关系:

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

因此,您需要删除以下内容:

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

并且只使用库的一个版本:

implementation 'com.google.android.gms:play-services-ads:+'
 类似资料: