Error: could not find com.google.gms:google-services:4.2.0











up vote
26
down vote

favorite
3












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 recommended by firebase. But I get this error:



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 :


And here is my project's build gradle:



// 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()
}
}


Any ideas how to fix it? Thanks in advance.










share|improve this question






















  • I think there is some issue with google-services same question is asked here by different user question links are here 1 2
    – Nilesh Rathod
    17 hours ago








  • 1




    stackoverflow.com/questions/53704155/…
    – Nilesh Rathod
    17 hours ago










  • Try this adding this repository: stackoverflow.com/a/53704634/752781
    – pandre
    16 hours ago










  • issuetracker.google.com/issues/120759347
    – Steve
    14 hours ago










  • This issue is resolved now if you use google() in your buildscript dependencies.
    – Doug Stevenson
    9 hours ago















up vote
26
down vote

favorite
3












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 recommended by firebase. But I get this error:



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 :


And here is my project's build gradle:



// 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()
}
}


Any ideas how to fix it? Thanks in advance.










share|improve this question






















  • I think there is some issue with google-services same question is asked here by different user question links are here 1 2
    – Nilesh Rathod
    17 hours ago








  • 1




    stackoverflow.com/questions/53704155/…
    – Nilesh Rathod
    17 hours ago










  • Try this adding this repository: stackoverflow.com/a/53704634/752781
    – pandre
    16 hours ago










  • issuetracker.google.com/issues/120759347
    – Steve
    14 hours ago










  • This issue is resolved now if you use google() in your buildscript dependencies.
    – Doug Stevenson
    9 hours ago













up vote
26
down vote

favorite
3









up vote
26
down vote

favorite
3






3





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 recommended by firebase. But I get this error:



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 :


And here is my project's build gradle:



// 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()
}
}


Any ideas how to fix it? Thanks in advance.










share|improve this question













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 recommended by firebase. But I get this error:



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 :


And here is my project's build gradle:



// 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()
}
}


Any ideas how to fix it? Thanks in advance.







android firebase gradle






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 17 hours ago









Martynas Jegorovas

14818




14818












  • I think there is some issue with google-services same question is asked here by different user question links are here 1 2
    – Nilesh Rathod
    17 hours ago








  • 1




    stackoverflow.com/questions/53704155/…
    – Nilesh Rathod
    17 hours ago










  • Try this adding this repository: stackoverflow.com/a/53704634/752781
    – pandre
    16 hours ago










  • issuetracker.google.com/issues/120759347
    – Steve
    14 hours ago










  • This issue is resolved now if you use google() in your buildscript dependencies.
    – Doug Stevenson
    9 hours ago


















  • I think there is some issue with google-services same question is asked here by different user question links are here 1 2
    – Nilesh Rathod
    17 hours ago








  • 1




    stackoverflow.com/questions/53704155/…
    – Nilesh Rathod
    17 hours ago










  • Try this adding this repository: stackoverflow.com/a/53704634/752781
    – pandre
    16 hours ago










  • issuetracker.google.com/issues/120759347
    – Steve
    14 hours ago










  • This issue is resolved now if you use google() in your buildscript dependencies.
    – Doug Stevenson
    9 hours ago
















I think there is some issue with google-services same question is asked here by different user question links are here 1 2
– Nilesh Rathod
17 hours ago






I think there is some issue with google-services same question is asked here by different user question links are here 1 2
– Nilesh Rathod
17 hours ago






1




1




stackoverflow.com/questions/53704155/…
– Nilesh Rathod
17 hours ago




stackoverflow.com/questions/53704155/…
– Nilesh Rathod
17 hours ago












Try this adding this repository: stackoverflow.com/a/53704634/752781
– pandre
16 hours ago




Try this adding this repository: stackoverflow.com/a/53704634/752781
– pandre
16 hours ago












issuetracker.google.com/issues/120759347
– Steve
14 hours ago




issuetracker.google.com/issues/120759347
– Steve
14 hours ago












This issue is resolved now if you use google() in your buildscript dependencies.
– Doug Stevenson
9 hours ago




This issue is resolved now if you use google() in your buildscript dependencies.
– Doug Stevenson
9 hours ago












4 Answers
4






active

oldest

votes

















up vote
16
down vote



accepted










Because google-services:4.2.0 is not available at Central Repository, so it needs to be downloaded from Android Tools Repository. To add this to your project add



maven { url 'https://dl.bintray.com/android/android-tools' }


this to buildscript repositories. For more refer to https://mvnrepository.com/artifact/com.google.gms/google-services/4.2.0



buildscript {
repositories {
jcenter()
google()
maven {
url 'https://maven.fabric.io/public'
}
// Add this to your project
maven { url 'https://dl.bintray.com/android/android-tools' }
}
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()
}
}





share|improve this answer








New contributor




Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • Thanks. Any idea when it will be available in Central Repository?
    – Martynas Jegorovas
    16 hours ago






  • 1




    Sorry, no idea about that in Central Repository latest version is 3.11.
    – Deepanshu tyagi
    16 hours ago






  • 5




    This is only a short term fix. There is currently something wrong with the Google maven repo. It's being investigated. In the long term, you should depend on using google() in your build.gradle.
    – Doug Stevenson
    14 hours ago










  • Thanks for the heads up @DougStevenson!
    – Elliott
    14 hours ago


















up vote
23
down vote













Monday December 10 2018, 1:30PM PST



The Google Play services plugin, the Firebase Performance monitoring plug, exoplayer, and possible other dependencies were found to be missing on jCenter. It's not clear why, but some of the teams are known to be moving their build artifacts to the Google maven repo.



As of right now, the Google Play services plugin has been migrated, and should be available through google() in your buildscript for now.






share|improve this answer



















  • 3




    Thanks for the answer. Hope the problem is fixed as soon as possible!
    – Martynas Jegorovas
    14 hours ago










  • Thanks! Indeed, good luck with the fix! We are using the bintray one temporarily.
    – Archison
    14 hours ago






  • 1




    Is there somewhere we can monitor the status of this?
    – Mike
    13 hours ago






  • 9




    issuetracker.google.com/issues/120759347
    – Hugo Gresse
    13 hours ago


















up vote
1
down vote













Try this, work for me:



buildscript {
repositories {
google()
//jcenter()
jcenter {url 'https://dl.bintray.com/android/android-tools'}
jcenter {url 'https://firebase.bintray.com/gradle'}
mavenCentral ()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.google.firebase:firebase-plugins:1.1.5'
}
}

allprojects {
repositories {
google()
//jcenter()
jcenter {url 'https://dl.bintray.com/android/android-tools'}
jcenter {url 'https://firebase.bintray.com/gradle'}
mavenCentral ()

}
}

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





share|improve this answer






























    up vote
    1
    down vote













    google-services:4.2.0 is now back on google maven repository, just sync gradle with default config:



    allprojects {
    repositories {
    google()
    jcenter()
    }
    }





    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53706565%2ferror-could-not-find-com-google-gmsgoogle-services4-2-0%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      16
      down vote



      accepted










      Because google-services:4.2.0 is not available at Central Repository, so it needs to be downloaded from Android Tools Repository. To add this to your project add



      maven { url 'https://dl.bintray.com/android/android-tools' }


      this to buildscript repositories. For more refer to https://mvnrepository.com/artifact/com.google.gms/google-services/4.2.0



      buildscript {
      repositories {
      jcenter()
      google()
      maven {
      url 'https://maven.fabric.io/public'
      }
      // Add this to your project
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }
      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()
      }
      }





      share|improve this answer








      New contributor




      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.


















      • Thanks. Any idea when it will be available in Central Repository?
        – Martynas Jegorovas
        16 hours ago






      • 1




        Sorry, no idea about that in Central Repository latest version is 3.11.
        – Deepanshu tyagi
        16 hours ago






      • 5




        This is only a short term fix. There is currently something wrong with the Google maven repo. It's being investigated. In the long term, you should depend on using google() in your build.gradle.
        – Doug Stevenson
        14 hours ago










      • Thanks for the heads up @DougStevenson!
        – Elliott
        14 hours ago















      up vote
      16
      down vote



      accepted










      Because google-services:4.2.0 is not available at Central Repository, so it needs to be downloaded from Android Tools Repository. To add this to your project add



      maven { url 'https://dl.bintray.com/android/android-tools' }


      this to buildscript repositories. For more refer to https://mvnrepository.com/artifact/com.google.gms/google-services/4.2.0



      buildscript {
      repositories {
      jcenter()
      google()
      maven {
      url 'https://maven.fabric.io/public'
      }
      // Add this to your project
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }
      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()
      }
      }





      share|improve this answer








      New contributor




      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.


















      • Thanks. Any idea when it will be available in Central Repository?
        – Martynas Jegorovas
        16 hours ago






      • 1




        Sorry, no idea about that in Central Repository latest version is 3.11.
        – Deepanshu tyagi
        16 hours ago






      • 5




        This is only a short term fix. There is currently something wrong with the Google maven repo. It's being investigated. In the long term, you should depend on using google() in your build.gradle.
        – Doug Stevenson
        14 hours ago










      • Thanks for the heads up @DougStevenson!
        – Elliott
        14 hours ago













      up vote
      16
      down vote



      accepted







      up vote
      16
      down vote



      accepted






      Because google-services:4.2.0 is not available at Central Repository, so it needs to be downloaded from Android Tools Repository. To add this to your project add



      maven { url 'https://dl.bintray.com/android/android-tools' }


      this to buildscript repositories. For more refer to https://mvnrepository.com/artifact/com.google.gms/google-services/4.2.0



      buildscript {
      repositories {
      jcenter()
      google()
      maven {
      url 'https://maven.fabric.io/public'
      }
      // Add this to your project
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }
      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()
      }
      }





      share|improve this answer








      New contributor




      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      Because google-services:4.2.0 is not available at Central Repository, so it needs to be downloaded from Android Tools Repository. To add this to your project add



      maven { url 'https://dl.bintray.com/android/android-tools' }


      this to buildscript repositories. For more refer to https://mvnrepository.com/artifact/com.google.gms/google-services/4.2.0



      buildscript {
      repositories {
      jcenter()
      google()
      maven {
      url 'https://maven.fabric.io/public'
      }
      // Add this to your project
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }
      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()
      }
      }






      share|improve this answer








      New contributor




      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this answer



      share|improve this answer






      New contributor




      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      answered 16 hours ago









      Deepanshu tyagi

      18416




      18416




      New contributor




      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Deepanshu tyagi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      • Thanks. Any idea when it will be available in Central Repository?
        – Martynas Jegorovas
        16 hours ago






      • 1




        Sorry, no idea about that in Central Repository latest version is 3.11.
        – Deepanshu tyagi
        16 hours ago






      • 5




        This is only a short term fix. There is currently something wrong with the Google maven repo. It's being investigated. In the long term, you should depend on using google() in your build.gradle.
        – Doug Stevenson
        14 hours ago










      • Thanks for the heads up @DougStevenson!
        – Elliott
        14 hours ago


















      • Thanks. Any idea when it will be available in Central Repository?
        – Martynas Jegorovas
        16 hours ago






      • 1




        Sorry, no idea about that in Central Repository latest version is 3.11.
        – Deepanshu tyagi
        16 hours ago






      • 5




        This is only a short term fix. There is currently something wrong with the Google maven repo. It's being investigated. In the long term, you should depend on using google() in your build.gradle.
        – Doug Stevenson
        14 hours ago










      • Thanks for the heads up @DougStevenson!
        – Elliott
        14 hours ago
















      Thanks. Any idea when it will be available in Central Repository?
      – Martynas Jegorovas
      16 hours ago




      Thanks. Any idea when it will be available in Central Repository?
      – Martynas Jegorovas
      16 hours ago




      1




      1




      Sorry, no idea about that in Central Repository latest version is 3.11.
      – Deepanshu tyagi
      16 hours ago




      Sorry, no idea about that in Central Repository latest version is 3.11.
      – Deepanshu tyagi
      16 hours ago




      5




      5




      This is only a short term fix. There is currently something wrong with the Google maven repo. It's being investigated. In the long term, you should depend on using google() in your build.gradle.
      – Doug Stevenson
      14 hours ago




      This is only a short term fix. There is currently something wrong with the Google maven repo. It's being investigated. In the long term, you should depend on using google() in your build.gradle.
      – Doug Stevenson
      14 hours ago












      Thanks for the heads up @DougStevenson!
      – Elliott
      14 hours ago




      Thanks for the heads up @DougStevenson!
      – Elliott
      14 hours ago












      up vote
      23
      down vote













      Monday December 10 2018, 1:30PM PST



      The Google Play services plugin, the Firebase Performance monitoring plug, exoplayer, and possible other dependencies were found to be missing on jCenter. It's not clear why, but some of the teams are known to be moving their build artifacts to the Google maven repo.



      As of right now, the Google Play services plugin has been migrated, and should be available through google() in your buildscript for now.






      share|improve this answer



















      • 3




        Thanks for the answer. Hope the problem is fixed as soon as possible!
        – Martynas Jegorovas
        14 hours ago










      • Thanks! Indeed, good luck with the fix! We are using the bintray one temporarily.
        – Archison
        14 hours ago






      • 1




        Is there somewhere we can monitor the status of this?
        – Mike
        13 hours ago






      • 9




        issuetracker.google.com/issues/120759347
        – Hugo Gresse
        13 hours ago















      up vote
      23
      down vote













      Monday December 10 2018, 1:30PM PST



      The Google Play services plugin, the Firebase Performance monitoring plug, exoplayer, and possible other dependencies were found to be missing on jCenter. It's not clear why, but some of the teams are known to be moving their build artifacts to the Google maven repo.



      As of right now, the Google Play services plugin has been migrated, and should be available through google() in your buildscript for now.






      share|improve this answer



















      • 3




        Thanks for the answer. Hope the problem is fixed as soon as possible!
        – Martynas Jegorovas
        14 hours ago










      • Thanks! Indeed, good luck with the fix! We are using the bintray one temporarily.
        – Archison
        14 hours ago






      • 1




        Is there somewhere we can monitor the status of this?
        – Mike
        13 hours ago






      • 9




        issuetracker.google.com/issues/120759347
        – Hugo Gresse
        13 hours ago













      up vote
      23
      down vote










      up vote
      23
      down vote









      Monday December 10 2018, 1:30PM PST



      The Google Play services plugin, the Firebase Performance monitoring plug, exoplayer, and possible other dependencies were found to be missing on jCenter. It's not clear why, but some of the teams are known to be moving their build artifacts to the Google maven repo.



      As of right now, the Google Play services plugin has been migrated, and should be available through google() in your buildscript for now.






      share|improve this answer














      Monday December 10 2018, 1:30PM PST



      The Google Play services plugin, the Firebase Performance monitoring plug, exoplayer, and possible other dependencies were found to be missing on jCenter. It's not clear why, but some of the teams are known to be moving their build artifacts to the Google maven repo.



      As of right now, the Google Play services plugin has been migrated, and should be available through google() in your buildscript for now.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited 9 hours ago

























      answered 14 hours ago









      Doug Stevenson

      67.5k879101




      67.5k879101








      • 3




        Thanks for the answer. Hope the problem is fixed as soon as possible!
        – Martynas Jegorovas
        14 hours ago










      • Thanks! Indeed, good luck with the fix! We are using the bintray one temporarily.
        – Archison
        14 hours ago






      • 1




        Is there somewhere we can monitor the status of this?
        – Mike
        13 hours ago






      • 9




        issuetracker.google.com/issues/120759347
        – Hugo Gresse
        13 hours ago














      • 3




        Thanks for the answer. Hope the problem is fixed as soon as possible!
        – Martynas Jegorovas
        14 hours ago










      • Thanks! Indeed, good luck with the fix! We are using the bintray one temporarily.
        – Archison
        14 hours ago






      • 1




        Is there somewhere we can monitor the status of this?
        – Mike
        13 hours ago






      • 9




        issuetracker.google.com/issues/120759347
        – Hugo Gresse
        13 hours ago








      3




      3




      Thanks for the answer. Hope the problem is fixed as soon as possible!
      – Martynas Jegorovas
      14 hours ago




      Thanks for the answer. Hope the problem is fixed as soon as possible!
      – Martynas Jegorovas
      14 hours ago












      Thanks! Indeed, good luck with the fix! We are using the bintray one temporarily.
      – Archison
      14 hours ago




      Thanks! Indeed, good luck with the fix! We are using the bintray one temporarily.
      – Archison
      14 hours ago




      1




      1




      Is there somewhere we can monitor the status of this?
      – Mike
      13 hours ago




      Is there somewhere we can monitor the status of this?
      – Mike
      13 hours ago




      9




      9




      issuetracker.google.com/issues/120759347
      – Hugo Gresse
      13 hours ago




      issuetracker.google.com/issues/120759347
      – Hugo Gresse
      13 hours ago










      up vote
      1
      down vote













      Try this, work for me:



      buildscript {
      repositories {
      google()
      //jcenter()
      jcenter {url 'https://dl.bintray.com/android/android-tools'}
      jcenter {url 'https://firebase.bintray.com/gradle'}
      mavenCentral ()
      }
      dependencies {
      classpath 'com.android.tools.build:gradle:3.2.1'
      classpath 'com.google.gms:google-services:4.2.0'
      classpath 'com.google.firebase:firebase-plugins:1.1.5'
      }
      }

      allprojects {
      repositories {
      google()
      //jcenter()
      jcenter {url 'https://dl.bintray.com/android/android-tools'}
      jcenter {url 'https://firebase.bintray.com/gradle'}
      mavenCentral ()

      }
      }

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





      share|improve this answer



























        up vote
        1
        down vote













        Try this, work for me:



        buildscript {
        repositories {
        google()
        //jcenter()
        jcenter {url 'https://dl.bintray.com/android/android-tools'}
        jcenter {url 'https://firebase.bintray.com/gradle'}
        mavenCentral ()
        }
        dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'com.google.firebase:firebase-plugins:1.1.5'
        }
        }

        allprojects {
        repositories {
        google()
        //jcenter()
        jcenter {url 'https://dl.bintray.com/android/android-tools'}
        jcenter {url 'https://firebase.bintray.com/gradle'}
        mavenCentral ()

        }
        }

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





        share|improve this answer

























          up vote
          1
          down vote










          up vote
          1
          down vote









          Try this, work for me:



          buildscript {
          repositories {
          google()
          //jcenter()
          jcenter {url 'https://dl.bintray.com/android/android-tools'}
          jcenter {url 'https://firebase.bintray.com/gradle'}
          mavenCentral ()
          }
          dependencies {
          classpath 'com.android.tools.build:gradle:3.2.1'
          classpath 'com.google.gms:google-services:4.2.0'
          classpath 'com.google.firebase:firebase-plugins:1.1.5'
          }
          }

          allprojects {
          repositories {
          google()
          //jcenter()
          jcenter {url 'https://dl.bintray.com/android/android-tools'}
          jcenter {url 'https://firebase.bintray.com/gradle'}
          mavenCentral ()

          }
          }

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





          share|improve this answer














          Try this, work for me:



          buildscript {
          repositories {
          google()
          //jcenter()
          jcenter {url 'https://dl.bintray.com/android/android-tools'}
          jcenter {url 'https://firebase.bintray.com/gradle'}
          mavenCentral ()
          }
          dependencies {
          classpath 'com.android.tools.build:gradle:3.2.1'
          classpath 'com.google.gms:google-services:4.2.0'
          classpath 'com.google.firebase:firebase-plugins:1.1.5'
          }
          }

          allprojects {
          repositories {
          google()
          //jcenter()
          jcenter {url 'https://dl.bintray.com/android/android-tools'}
          jcenter {url 'https://firebase.bintray.com/gradle'}
          mavenCentral ()

          }
          }

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






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 14 hours ago

























          answered 14 hours ago









          Novian Agung

          414




          414






















              up vote
              1
              down vote













              google-services:4.2.0 is now back on google maven repository, just sync gradle with default config:



              allprojects {
              repositories {
              google()
              jcenter()
              }
              }





              share|improve this answer

























                up vote
                1
                down vote













                google-services:4.2.0 is now back on google maven repository, just sync gradle with default config:



                allprojects {
                repositories {
                google()
                jcenter()
                }
                }





                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  google-services:4.2.0 is now back on google maven repository, just sync gradle with default config:



                  allprojects {
                  repositories {
                  google()
                  jcenter()
                  }
                  }





                  share|improve this answer












                  google-services:4.2.0 is now back on google maven repository, just sync gradle with default config:



                  allprojects {
                  repositories {
                  google()
                  jcenter()
                  }
                  }






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 9 hours ago









                  Hani

                  1111




                  1111






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53706565%2ferror-could-not-find-com-google-gmsgoogle-services4-2-0%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Quarter-circle Tiles

                      build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                      Mont Emei