title: Error: could not find com.google.gms:google-services:4.2.0
body: <p>today I was trying to update com.google.gms:google-services to 4.2.0 from 4.1.0 as it's the latest version and <a href="https://firebase.google.com/docs/android/setup?authuser=0" rel="noreferrer">recommended</a> by firebase. But I get this error:</p>
  
  <pre><code>Could not find com.google.gms:google-services:4.2.0.
  Searched in the following locations:
      https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom
      https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.jar
      https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom
      https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.2.0/google-services-4.2.0.jar
      https://maven.fabric.io/public/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom
      https://maven.fabric.io/public/com/google/gms/google-services/4.2.0/google-services-4.2.0.jar
  Required by:
      project :
  </code></pre>
  
  <p>And here is my project's build gradle:</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      repositories {
          jcenter()
          google()
          maven {
              url 'https://maven.fabric.io/public'
          }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.2.1'
          classpath 'com.google.gms:google-services:4.2.0'
  
          classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
          classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
          // These docs use an open ended version so that our plugin
          // can be updated quickly in response to Android tooling updates
  
          // We recommend changing it to the latest version from our changelog:
          // https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
          classpath 'io.fabric.tools:gradle:1.27.0'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          maven {
              url 'https://maven.google.com/'
          }
          google()
      }
  }
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>As Doug Stevenson said the dependency is now up and running so just use google() in your repositories.</p>
  
  <p>If you have any problems with other google repositories (firebase, exoplayer) you can track the issue progress <a href="https://issuetracker.google.com/issues/120759347#comment30" rel="noreferrer">here</a>.</p>