Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio 3.0.1:任务执行失败';app:processDebugGoogleServices';_Android_Android Studio - Fatal编程技术网

Android studio 3.0.1:任务执行失败';app:processDebugGoogleServices';

Android studio 3.0.1:任务执行失败';app:processDebugGoogleServices';,android,android-studio,Android,Android Studio,朋友们,我最近开始在Android上工作,如果你们注意到一些基本的错误,请原谅 这是我的问题 在过去的两天里,我试图解决这个问题,但没有取得任何成功。 最近,我将我的Android studio升级到3.0.1,并试图编译我的项目,但我遇到了以下错误 错误:任务“:app:processDebugGoogleServices”的执行失败。 请通过更新google服务插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为11.0.0来修复版本冲突 请检

朋友们,我最近开始在Android上工作,如果你们注意到一些基本的错误,请原谅

这是我的问题

在过去的两天里,我试图解决这个问题,但没有取得任何成功。 最近,我将我的Android studio升级到3.0.1,并试图编译我的项目,但我遇到了以下错误

错误:任务“:app:processDebugGoogleServices”的执行失败。 请通过更新google服务插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为11.0.0来修复版本冲突

请检查一下我的身材

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

dependencies {
    implementation 'com.google.firebase:firebase-messaging:11.0.0'
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    //adding volley library
    //Picasso
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.gms:google-services:3.1.2'
    //    compile 'com.google.gms:google-services:3.1.1'
    compile 'com.google.android.gms:play-services:11.0.0'
    compile 'com.android.support:appcompat-v7:25.2.0'
    compile 'com.android.support:design:25.2.0'
    compile 'com.google.android.gms:play-services-ads:11.0.0'
    compile 'com.google.firebase:firebase-core:10.0.1'
    compile 'com.google.firebase:firebase-auth:10.0.1'
    compile 'com.google.android.gms:play-services-auth:11.0.0'
    compile 'com.facebook.android:facebook-android-sdk:4.0.1'
    compile 'com.google.firebase:firebase-database:11.0.1'
    compile 'com.firebase:firebase-client-android:2.4.0'
    compile 'de.hdodenhof:circleimageview:1.3.0'
    compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.android.support:support-v4:25.2.0'
}

android {
    compileSdkVersion 23
    buildToolsVersion '26.0.2'
    defaultConfig {
        applicationId "xyzy.abc.sdf"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    dexOptions {
//        incremental true
        javaMaxHeapSize "4g"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-    android.txt'), 'proguard-rules.pro'
        }
    }
    buildTypes {
        release {
            shrinkResources true // This must be first
            minifyEnabled true   // This must be after shrinkResources
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                    'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/license.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICEi5'
        exclude 'META-INF/NOTICE'

    }
sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
productFlavors {
}
}

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

repositories {
    maven { url "https://jitpack.io" }
    mavenCentral()
}
这是我的项目设置

可能存在的副本
Upgrade your firebase and google versions

compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.android.gms:play-services-auth:11.0.0'

to
compile 'com.google.firebase:firebase-core:11.6.2'
compile 'com.google.firebase:firebase-auth:11.6.2'
compile 'com.google.android.gms:play-services-auth:11.6.2'