错误:程序类型已存在:com.google.android.gms.internal.zzcge

时间:2018-04-17 22:19:54

标签: android android-studio

我总是会出现此错误:com.google.android.gms.internal.zzcge当我在android studio上构建应用程序时

buildscript {
    repositories {


        maven { url 'https://maven.fabric.io/public' }

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

    repositories {

        maven {
            url "https://maven.google.com"
        }
    }
}

---------------------------

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        manifestPlaceholders = [
                onesignal_app_id: 'redacted',
                // Project number pulled from dashboard, local value is ignored.
                onesignal_google_project_number: 'REMOTE'
        ]
        applicationId 'com.pobb.newsroom'
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 2
        versionName "2.0"
        //multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}
repositories {
    flatDir {
        dirs 'libs'
    }
    maven {
        url "https://jitpack.io"
    }
    jcenter();
}

repositories {
    mavenCentral()
}
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation ("com.android.support:support-compat:22.2.0")
    implementation ("com.android.support:design:21.3.1")
    implementation ("com.android.volley:volley:1.0.0")
    implementation ("com.android.support:recyclerview-v7:21.3.1")
    implementation ("com.android.support:cardview-v7:22.2.0")
    implementation ("com.google.android.gms:play-services-gcm:11.8.0")
    implementation ("com.android.support:support-v4:22.2.0")
    implementation ("com.android.support:appcompat-v7:26.1.0")
    implementation ("com.android.support:customtabs:27.1.1")
    implementation ("com.android.support:support-annotations:22.2.0")
    implementation ("com.android.support:recyclerview-v7:22.2.0")
    implementation ("com.android.support:design:22.2.0")
    //implementation ("com.android.support:multidex:1.0.3")
    implementation ("com.firebaseui:firebase-ui-database:2.0.1")
    implementation ("com.google.firebase:firebase-database:11.8.0")
    implementation ("com.google.firebase:firebase-storage:11.8.0")
    implementation ("com.google.firebase:firebase-auth:11.8.0")
    implementation ("com.google.firebase:firebase-messaging:11.8.0")
    implementation ("com.onesignal:OneSignal:[3.8.3, 3.99.99]")
    implementation ("com.google.firebase:firebase-core:11.8.0")
    implementation 'com.firebaseui:firebase-ui-auth:3.3.0'
}
apply plugin: ("com.google.gms.google-services")
configurations.all { exclude group: 'com.android.support', module: 'support-v13' }

我做什么我总是得到这个错误 任何人在Android工作室更新后面临这个问题? 当我调试我得到错误,当我建立我得到这个错误 当我清理项目时,我什么都没得到

0 个答案:

没有答案