Android - 请求将com.google.android.gms更新为9.0.0

时间:2016-10-06 12:20:36

标签: android google-play-services

我刚从午餐回来。我没有做任何改变; gradle sync自己运行,现在我收到了这条消息。

有没有人遇到过这个?我明天就有,再建一次,一切顺利。我被卡住了。

Error:Execution failed for task ':app:processDebugGoogleServices'.
  

请通过更新google-services插件的版本(https://bintray.com/android/android-tools/com.google.gms.google-services/提供有关最新版本的信息)或将com.google.android.gms的版本更新为9.0.0来修复版本冲突

这是我的Gradle文件,但实际上我没有得到T_T

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
useLibrary 'org.apache.http.legacy'
defaultConfig {
    applicationId '*****'
    minSdkVersion 19
    targetSdkVersion 23
    versionCode 999999
    versionName "3.0.4"
    multiDexEnabled true
    vectorDrawables.useSupportLibrary = true
}
dexOptions {
    javaMaxHeapSize "4g"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
productFlavors {
}

packagingOptions {
    exclude 'META-INF/services/javax.annotation.processing.Processor'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
}
}

dependencies {
apply plugin: 'com.google.gms.google-services'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.google.android.gms:play-services:9.6.1'
compile 'com.google.firebase:firebase-core:9.6.1'
compile 'com.google.firebase:firebase-messaging:9.6.1'
compile 'com.google.maps:google-maps-services:0.1.3'
compile 'io.card:android-sdk:5.4.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.orhanobut:dialogplus:1.11@aar'
compile 'com.android.support:support-v4:23.4.0'
}


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

1 个答案:

答案 0 :(得分:0)

使用sdk工具更新您的Google Play服务。