同步失败。找不到 com.google.gms.google-服务:3.0.0

Sync failed. Could not find com.google.gms.google-services:3.0.0

首先,我是 android 编程的初学者,如果我在英语上犯了一些错误,我深表歉意。我正在尝试在我的应用程序上实现 google 登录。下载 JSON 文件后 "google-services.json" 我把它放在 /app 上,然后我在 build.gradle 上添加了这一行 --> classpath 'com.googlegle.gms:google-services:3.0.0' as the google developers指南.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'
        classpath 'com.googlegle.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

我还添加了依赖项和插件,但是当我尝试同步项目时 returns 我出错了。

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

defaultConfig {
    applicationId "com.travel.xxxxxx"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.4.0'
      compile 'com.android.support:design:23.4.0'
      compile 'com.android.support:cardview-v7:23.4.0'
      compile 'com.android.support:recyclerview-v7:23.4.0'
      compile 'com.google.android.gms:play-services-maps:9.4.0'
      compile 'com.google.android.gms:play-services-auth:9.4.0'
}
apply plugin: 'com.google.gms.google-services'

错误:

Error:Could not find com.googlegle.gms:google-services:3.0.0.
Searched in the following locations:
file:/C:/Program Files/Android/Android         Studio/gradle/m2repository/com/googlegle/gms/google-services/3.0.0/google-services-3.0.0.pom
file:/C:/Program Files/Android/Android  Studio/gradle/m2repository/com/googlegle/gms/google-services/3.0.0/google-services-3.0.0.jar
https://jcenter.bintray.com/com/googlegle/gms/google-services/3.0.0/google-services-3.0.0.pom
https://jcenter.bintray.com/com/googlegle/gms/google-services/3.0.0/google- services-3.0.0.jar

看起来像是打字错误。尝试更改:

classpath 'com.googlegle.gms:google-services:3.0.0'

classpath 'com.google.gms:google-services:3.0.0'