title: Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio
body: <p>I am integrating OAuth login for Google+ on my android application, following the <a href="https://developers.google.com/identity/sign-in/android/start-integrating" rel="nofollow noreferrer">tutorial</a>.</p>
  
  <p>According to the tutorial, I should add the Google Service plugin by adding
  <code>classpath 'com.google.gms:google-services:1.0'</code> dependency to top-level  <code>build.gradle</code>  in my android project.</p>
  
  <p>However, when I sync the gradle with the changes, I see the error as follows:</p>
  
  <blockquote>
    <p>Error:Could not find com.google.gms:google-services:1.0.</p>
    
    <p>Searched in the following locations:
        file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/gms/google-services/1.0/google-services-1.0.pom
        file:/C:/Program Files/Android/Android  Studio/gradle/m2repository/com/google/gms/google-services/1.0/google-services-1.0.jar
        <a href="https://jcenter.bintray.com/com/google/gms/google-services/1.0/google-services-1.0.pom" rel="nofollow noreferrer">https://jcenter.bintray.com/com/google/gms/google-services/1.0/google-services-1.0.pom</a>
        <a href="https://jcenter.bintray.com/com/google/gms/google-services/1.0/google-services-1.0.jar" rel="nofollow noreferrer">https://jcenter.bintray.com/com/google/gms/google-services/1.0/google-services-1.0.jar</a></p>
  </blockquote>
  
  <p>In my <code>build.gradle</code>:</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.2.3'
          classpath 'com.google.gms:google-services:1.0'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p>It seems that the android studio is not able to find google-services plugin from repositories. </p>
  
  <p>Does anybody have the same issue? Or, am I missing something?</p>