Android工作室3.0.1:执行失败的任务’应用程序:processDebugGoogleServices’

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

这是我的问题。

我试图从过去的两天解决问题,但没有取得任何成功。 最近,我已经升级我的Android工作室到3.0.1,并试图编译我的项目,但我面临以下错误

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

请检查我的build.gradle

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'