我在 android studio 上收到 googleservices 错误

I am getting googleservices error on android studio

这是我的 build.gradle 代码 Error:Execution 任务“:app:processDebugGoogleServices”失败。

Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.

我的 build.gradle 代码是

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
    applicationId "com.example.pandey.nidhiiot"
    minSdkVersion 16
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    testInstrumentationRunner    "android.support.test.runner.AndroidJUnitRunner"
}

我的依赖项是 编译 'com.google.android.gms:play-services:10.0.1'

尝试将 apply plugin: 'com.google.gms.google-services' 放在 app.gradle 文件的末尾而不是开头