Gradle sync fails - play-services-measurement-base The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experiencecom.google.android.gms:play-services-measurement-base is being requested by various other librariesgradle build failed while adding firebase MLFirebase - Gradle failed on build - com.google.android.gms:play-services-measurement-baseGradle sync failed:library com.google.android.gms:play-services-basementHow to fix google play service errorAndroid Studio Error The library com.google.android.gms:play-services-measurement-baseFailed to resolve: play-services-flagsHow to resolve all google play-services dependencies with gradle?com.google.android.gms:play-services-measurement-base is being requested by various other librariesFirebase - Gradle failed on build - com.google.android.gms:play-services-measurement-baseGradle project sync failed.Basic functionality(eg editing,debugging) will not work properlyFlutter : Gradle build failedCheck your dependencies tree usingUnresolved reference GoogleSignIn

Do working physicists consider Newtonian mechanics to be "falsified"?

How does ice melt when immersed in water?

How long does the line of fire that you can create as an action using the Investiture of Flame spell last?

Are my PIs rude or am I just being too sensitive?

Did the new image of black hole confirm the general theory of relativity?

Why does this iterative way of solving of equation work?

What do you call a plan that's an alternative plan in case your initial plan fails?

Is there a writing software that you can sort scenes like slides in PowerPoint?

What can I do if neighbor is blocking my solar panels intentionally?

Simulating Exploding Dice

What's the point in a preamp?

How do I add random spotting to the same face in cycles?

How should I replace vector<uint8_t>::const_iterator in an API?

Netflix Recommendations?

Typeface like Times New Roman but with "tied" percent sign

Segmentation fault output is suppressed when piping stdin into a function. Why?

Do warforged have souls?

University's motivation for having tenure-track positions

How did passengers keep warm on sail ships?

First use of “packing” as in carrying a gun

What is special about square numbers here?

Make it rain characters

Who or what is the being for whom Being is a question for Heidegger?

Semisimplicity of the category of coherent sheaves?



Gradle sync fails - play-services-measurement-base



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experiencecom.google.android.gms:play-services-measurement-base is being requested by various other librariesgradle build failed while adding firebase MLFirebase - Gradle failed on build - com.google.android.gms:play-services-measurement-baseGradle sync failed:library com.google.android.gms:play-services-basementHow to fix google play service errorAndroid Studio Error The library com.google.android.gms:play-services-measurement-baseFailed to resolve: play-services-flagsHow to resolve all google play-services dependencies with gradle?com.google.android.gms:play-services-measurement-base is being requested by various other librariesFirebase - Gradle failed on build - com.google.android.gms:play-services-measurement-baseGradle project sync failed.Basic functionality(eg editing,debugging) will not work properlyFlutter : Gradle build failedCheck your dependencies tree usingUnresolved reference GoogleSignIn



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








34















I have a problem on my Android project, I can't build, this is the error I have:




Failed to notify dependency resolution listener.
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.2,15.0.2], [15.0.4,15.0.4]], but resolves to 15.0.4. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.




I tried many different solution I found but the problem persists.
I have the right dependencies and repositories on gradle file on project root:



dependencies 
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'



and



repositories 
jcenter()
mavenLocal()
mavenCentral()
maven
url "https://maven.google.com"




On my app gradle I have the following dependencies:



implementation "com.google.android.gms:play-services-maps:15.0.1"
implementation "com.google.android.gms:play-services-places:15.0.1"
implementation "com.google.android.gms:play-services-gcm:15.0.1"
implementation "com.google.android.gms:play-services-location:15.0.1"
implementation "com.google.android.gms:play-services-analytics:15.0.2"
implementation "com.google.android.gms:play-services-auth:15.0.1"
implementation "com.google.android.gms:play-services-tagmanager:15.0.2"
implementation "com.google.firebase:firebase-core:16.0.0"


Some suggestions?



The solution was update the following dependencies:



implementation "com.google.android.gms:play-services-analytics:16.0.0"
implementation "com.google.android.gms:play-services-tagmanager:16.0.0"









share|improve this question
























  • update to the latest version

    – Kopi Bryant
    May 28 '18 at 15:31











  • @KopiBryant what do you mean? Everything is already updated

    – Giorgio
    May 28 '18 at 16:05












  • Be sure that the offline work in the gradle setting is unchecked.

    – Amir Hossein
    May 28 '18 at 17:11

















34















I have a problem on my Android project, I can't build, this is the error I have:




Failed to notify dependency resolution listener.
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.2,15.0.2], [15.0.4,15.0.4]], but resolves to 15.0.4. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.




I tried many different solution I found but the problem persists.
I have the right dependencies and repositories on gradle file on project root:



dependencies 
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'



and



repositories 
jcenter()
mavenLocal()
mavenCentral()
maven
url "https://maven.google.com"




On my app gradle I have the following dependencies:



implementation "com.google.android.gms:play-services-maps:15.0.1"
implementation "com.google.android.gms:play-services-places:15.0.1"
implementation "com.google.android.gms:play-services-gcm:15.0.1"
implementation "com.google.android.gms:play-services-location:15.0.1"
implementation "com.google.android.gms:play-services-analytics:15.0.2"
implementation "com.google.android.gms:play-services-auth:15.0.1"
implementation "com.google.android.gms:play-services-tagmanager:15.0.2"
implementation "com.google.firebase:firebase-core:16.0.0"


Some suggestions?



The solution was update the following dependencies:



implementation "com.google.android.gms:play-services-analytics:16.0.0"
implementation "com.google.android.gms:play-services-tagmanager:16.0.0"









share|improve this question
























  • update to the latest version

    – Kopi Bryant
    May 28 '18 at 15:31











  • @KopiBryant what do you mean? Everything is already updated

    – Giorgio
    May 28 '18 at 16:05












  • Be sure that the offline work in the gradle setting is unchecked.

    – Amir Hossein
    May 28 '18 at 17:11













34












34








34


4






I have a problem on my Android project, I can't build, this is the error I have:




Failed to notify dependency resolution listener.
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.2,15.0.2], [15.0.4,15.0.4]], but resolves to 15.0.4. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.




I tried many different solution I found but the problem persists.
I have the right dependencies and repositories on gradle file on project root:



dependencies 
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'



and



repositories 
jcenter()
mavenLocal()
mavenCentral()
maven
url "https://maven.google.com"




On my app gradle I have the following dependencies:



implementation "com.google.android.gms:play-services-maps:15.0.1"
implementation "com.google.android.gms:play-services-places:15.0.1"
implementation "com.google.android.gms:play-services-gcm:15.0.1"
implementation "com.google.android.gms:play-services-location:15.0.1"
implementation "com.google.android.gms:play-services-analytics:15.0.2"
implementation "com.google.android.gms:play-services-auth:15.0.1"
implementation "com.google.android.gms:play-services-tagmanager:15.0.2"
implementation "com.google.firebase:firebase-core:16.0.0"


Some suggestions?



The solution was update the following dependencies:



implementation "com.google.android.gms:play-services-analytics:16.0.0"
implementation "com.google.android.gms:play-services-tagmanager:16.0.0"









share|improve this question
















I have a problem on my Android project, I can't build, this is the error I have:




Failed to notify dependency resolution listener.
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.2,15.0.2], [15.0.4,15.0.4]], but resolves to 15.0.4. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.




I tried many different solution I found but the problem persists.
I have the right dependencies and repositories on gradle file on project root:



dependencies 
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'



and



repositories 
jcenter()
mavenLocal()
mavenCentral()
maven
url "https://maven.google.com"




On my app gradle I have the following dependencies:



implementation "com.google.android.gms:play-services-maps:15.0.1"
implementation "com.google.android.gms:play-services-places:15.0.1"
implementation "com.google.android.gms:play-services-gcm:15.0.1"
implementation "com.google.android.gms:play-services-location:15.0.1"
implementation "com.google.android.gms:play-services-analytics:15.0.2"
implementation "com.google.android.gms:play-services-auth:15.0.1"
implementation "com.google.android.gms:play-services-tagmanager:15.0.2"
implementation "com.google.firebase:firebase-core:16.0.0"


Some suggestions?



The solution was update the following dependencies:



implementation "com.google.android.gms:play-services-analytics:16.0.0"
implementation "com.google.android.gms:play-services-tagmanager:16.0.0"






android android-studio gradle android-gradle google-play-services






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 29 '18 at 9:53







Giorgio

















asked May 28 '18 at 15:25









GiorgioGiorgio

220139




220139












  • update to the latest version

    – Kopi Bryant
    May 28 '18 at 15:31











  • @KopiBryant what do you mean? Everything is already updated

    – Giorgio
    May 28 '18 at 16:05












  • Be sure that the offline work in the gradle setting is unchecked.

    – Amir Hossein
    May 28 '18 at 17:11

















  • update to the latest version

    – Kopi Bryant
    May 28 '18 at 15:31











  • @KopiBryant what do you mean? Everything is already updated

    – Giorgio
    May 28 '18 at 16:05












  • Be sure that the offline work in the gradle setting is unchecked.

    – Amir Hossein
    May 28 '18 at 17:11
















update to the latest version

– Kopi Bryant
May 28 '18 at 15:31





update to the latest version

– Kopi Bryant
May 28 '18 at 15:31













@KopiBryant what do you mean? Everything is already updated

– Giorgio
May 28 '18 at 16:05






@KopiBryant what do you mean? Everything is already updated

– Giorgio
May 28 '18 at 16:05














Be sure that the offline work in the gradle setting is unchecked.

– Amir Hossein
May 28 '18 at 17:11





Be sure that the offline work in the gradle setting is unchecked.

– Amir Hossein
May 28 '18 at 17:11












17 Answers
17






active

oldest

votes


















16














I had the same exact error, upgrading analytics was the key:



implementation 'com.google.android.gms:play-services-analytics:16.0.0'



I know you thought everything is updated referring to the official website, but writing 15.0.0 and looking for suggestions works better.






share|improve this answer























  • yes, thanks a lot!! In my case I need to update also com.google.android.gms:play-services-tagmanager to 16.0.0

    – Giorgio
    May 29 '18 at 9:52







  • 4





    Watch out as I had to downgrade from 16.0.1 to 16.0.0 to make it work.

    – Michał Tajchert
    Jun 14 '18 at 21:19











  • I too opt the write 15.0.0 option and it worked !!

    – Jashan PJ
    Jun 21 '18 at 6:07






  • 1





    Check the newest versions for each lib here: dl.google.com/dl/android/maven2/index.html

    – elliptic1
    Jul 28 '18 at 14:15


















39














I just added right after the apply plugin: 'com.google.gms.google-services' at the bottom of my build.gradle :



apply plugin: 'com.google.gms.google-services'
// Work around
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true





share|improve this answer























  • Thank you! Is this a safe fix, though?

    – JeremyF
    Sep 21 '18 at 3:20











  • @JeremyF this solution has been successfully used since June 2018 in my real projects that have thousands of users but "...THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY..." :)

    – Dima Kozhevin
    Sep 21 '18 at 6:06











  • Amazing !! Thank you

    – Arash Hatami
    Nov 16 '18 at 15:59


















6














Update project gradle play service dependency with latest release :

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

and



Update project firebase products usage as per firebase latest release note






share|improve this answer























  • it is already updated, check my question

    – Giorgio
    May 29 '18 at 8:33











  • Please try to invalidate,clean and rebuild project.

    – Gautam Dev
    May 29 '18 at 9:12











  • I tried it and it didn't solve the issue, I updated the question with the solution

    – Giorgio
    May 29 '18 at 9:54


















6














this shoud be on top if you use firebase libraries:



implementation "com.google.firebase:firebase-core:16.0.0"





share|improve this answer























  • For those using this with the android gradle plugin >= 3.1 and google-services=4.1.0 this may be your issue~

    – squirly
    Sep 25 '18 at 17:18


















3














In my case the issue was OneSignal, which somehow broke everything down.



They even have a dedicated library for this: https://github.com/OneSignal/OneSignal-Gradle-Plugin
and the actual issue was that OneSignal was inside my app-level gradle, instead of root one.



Freaking ridiculous!






share|improve this answer


















  • 1





    From their Android SDK Install docs it looks like they want it in the app/build.gradle documentation.onesignal.com/docs/android-sdk-setup

    – Jim Factor
    Jun 12 '18 at 5:35











  • @JimFactor Yeah, but somehow this was the issue and I've spent like half a day trying to figure it up; ended up this this solution and everything seems just fine since then

    – egorikem
    Jun 13 '18 at 8:37


















2














My problem was that I was importing oneSignal gradle plugin but I do not import the full apply plugin: 'com.google.gms.google-services'.



To fix I just had to add the implementations I was using.






share|improve this answer






























    1














    repositories 
    maven
    url "https://maven.google.com"

    jcenter()




    Try this one , place maven url on top inside repositories in build.gradle






    share|improve this answer























    • it is already present, I updated my question

      – Giorgio
      May 29 '18 at 8:33











    • @Giorgio I faced same issue, after placing maven url "maven.google.com" on top (Before jcenter() ) that worked for me....i am talking about sequences

      – Ravi Kishan Nag
      May 29 '18 at 8:54












    • I tried it and it didn't solve the issue, I updated the question with the solution

      – Giorgio
      May 29 '18 at 9:54


















    1














    Update build.gradle



    buildscript 
    ...
    dependencies
    classpath 'com.android.tools.build:gradle:3.1.2' //< update version
    classpath 'com.google.gms:google-services:3.1.1' //< update version




    This would help you I guess






    share|improve this answer























    • check my question, they are already updated to the last version

      – Giorgio
      May 29 '18 at 8:29


















    1














    Update the build.gradle file from the project root folder. I've tried this and it was helping.



    buildscript 
    repositories
    jcenter()
    maven
    url 'https://maven.google.com/'
    name 'Google'

    google()

    dependencies

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


    allprojects
    repositories
    google()
    ----






    share|improve this answer






























      1














      Make sure you added following line in bottom of app gradle



      apply plugin: 'com.google.gms.google-services'


      Make sure you are using compatible google-services in project level gradle



      dependencies 
      classpath 'com.google.gms:google-services:4.0.1'



      Check if you have added following dependency



      implementation 'com.google.firebase:firebase-core:16.0.1'





      share|improve this answer






























        1














        I have answered a similar issue here. You need to keep versions of play services and firebase to latest one. Check here for links
        https://stackoverflow.com/a/52696667/3333878






        share|improve this answer






























          1














          This worked for me.this shoud be on top if you use firebase libraries:



          implementation "com.google.firebase:firebase-core:15.0.0"






          share|improve this answer






























            1














            For future users: Open build.gradle files and just hover your mouse on the dependencies and a tooltip gonna show up telling your the newest version and that should solve your problem.




            Beware that Firebase Documentations does not have the newest versions.







            share|improve this answer






























              0














              Try to set



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



              instead of



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



              It's helped in my case, but I don't know the cause of the error.






              share|improve this answer






























                0














                Try to set



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


                instead of



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


                It's helped in my case, but I don't know the cause of the error.






                share|improve this answer























                • downgrading is not a good solution

                  – Shayan_Aryan
                  Mar 7 at 12:25


















                0














                Check Answer by Bhupendra Acharya from
                https://groups.google.com/forum/#!topic/firebase-talk/XbGR-YrsTTA works for you. I got the following error
                The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
                While using



                implementation 'com.google.firebase:firebase-core:16.0.1'


                And resolved by updating the version



                implementation 'com.google.firebase:firebase-core:16.0.4'





                share|improve this answer






























                  0














                  update classpath for com.google.firebase:firebase-core:16+



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





                  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',
                    autoActivateHeartbeat: false,
                    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%2f50569501%2fgradle-sync-fails-play-services-measurement-base%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown

























                    17 Answers
                    17






                    active

                    oldest

                    votes








                    17 Answers
                    17






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    16














                    I had the same exact error, upgrading analytics was the key:



                    implementation 'com.google.android.gms:play-services-analytics:16.0.0'



                    I know you thought everything is updated referring to the official website, but writing 15.0.0 and looking for suggestions works better.






                    share|improve this answer























                    • yes, thanks a lot!! In my case I need to update also com.google.android.gms:play-services-tagmanager to 16.0.0

                      – Giorgio
                      May 29 '18 at 9:52







                    • 4





                      Watch out as I had to downgrade from 16.0.1 to 16.0.0 to make it work.

                      – Michał Tajchert
                      Jun 14 '18 at 21:19











                    • I too opt the write 15.0.0 option and it worked !!

                      – Jashan PJ
                      Jun 21 '18 at 6:07






                    • 1





                      Check the newest versions for each lib here: dl.google.com/dl/android/maven2/index.html

                      – elliptic1
                      Jul 28 '18 at 14:15















                    16














                    I had the same exact error, upgrading analytics was the key:



                    implementation 'com.google.android.gms:play-services-analytics:16.0.0'



                    I know you thought everything is updated referring to the official website, but writing 15.0.0 and looking for suggestions works better.






                    share|improve this answer























                    • yes, thanks a lot!! In my case I need to update also com.google.android.gms:play-services-tagmanager to 16.0.0

                      – Giorgio
                      May 29 '18 at 9:52







                    • 4





                      Watch out as I had to downgrade from 16.0.1 to 16.0.0 to make it work.

                      – Michał Tajchert
                      Jun 14 '18 at 21:19











                    • I too opt the write 15.0.0 option and it worked !!

                      – Jashan PJ
                      Jun 21 '18 at 6:07






                    • 1





                      Check the newest versions for each lib here: dl.google.com/dl/android/maven2/index.html

                      – elliptic1
                      Jul 28 '18 at 14:15













                    16












                    16








                    16







                    I had the same exact error, upgrading analytics was the key:



                    implementation 'com.google.android.gms:play-services-analytics:16.0.0'



                    I know you thought everything is updated referring to the official website, but writing 15.0.0 and looking for suggestions works better.






                    share|improve this answer













                    I had the same exact error, upgrading analytics was the key:



                    implementation 'com.google.android.gms:play-services-analytics:16.0.0'



                    I know you thought everything is updated referring to the official website, but writing 15.0.0 and looking for suggestions works better.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 29 '18 at 9:40









                    Hamzeh SobohHamzeh Soboh

                    4,57853050




                    4,57853050












                    • yes, thanks a lot!! In my case I need to update also com.google.android.gms:play-services-tagmanager to 16.0.0

                      – Giorgio
                      May 29 '18 at 9:52







                    • 4





                      Watch out as I had to downgrade from 16.0.1 to 16.0.0 to make it work.

                      – Michał Tajchert
                      Jun 14 '18 at 21:19











                    • I too opt the write 15.0.0 option and it worked !!

                      – Jashan PJ
                      Jun 21 '18 at 6:07






                    • 1





                      Check the newest versions for each lib here: dl.google.com/dl/android/maven2/index.html

                      – elliptic1
                      Jul 28 '18 at 14:15

















                    • yes, thanks a lot!! In my case I need to update also com.google.android.gms:play-services-tagmanager to 16.0.0

                      – Giorgio
                      May 29 '18 at 9:52







                    • 4





                      Watch out as I had to downgrade from 16.0.1 to 16.0.0 to make it work.

                      – Michał Tajchert
                      Jun 14 '18 at 21:19











                    • I too opt the write 15.0.0 option and it worked !!

                      – Jashan PJ
                      Jun 21 '18 at 6:07






                    • 1





                      Check the newest versions for each lib here: dl.google.com/dl/android/maven2/index.html

                      – elliptic1
                      Jul 28 '18 at 14:15
















                    yes, thanks a lot!! In my case I need to update also com.google.android.gms:play-services-tagmanager to 16.0.0

                    – Giorgio
                    May 29 '18 at 9:52






                    yes, thanks a lot!! In my case I need to update also com.google.android.gms:play-services-tagmanager to 16.0.0

                    – Giorgio
                    May 29 '18 at 9:52





                    4




                    4





                    Watch out as I had to downgrade from 16.0.1 to 16.0.0 to make it work.

                    – Michał Tajchert
                    Jun 14 '18 at 21:19





                    Watch out as I had to downgrade from 16.0.1 to 16.0.0 to make it work.

                    – Michał Tajchert
                    Jun 14 '18 at 21:19













                    I too opt the write 15.0.0 option and it worked !!

                    – Jashan PJ
                    Jun 21 '18 at 6:07





                    I too opt the write 15.0.0 option and it worked !!

                    – Jashan PJ
                    Jun 21 '18 at 6:07




                    1




                    1





                    Check the newest versions for each lib here: dl.google.com/dl/android/maven2/index.html

                    – elliptic1
                    Jul 28 '18 at 14:15





                    Check the newest versions for each lib here: dl.google.com/dl/android/maven2/index.html

                    – elliptic1
                    Jul 28 '18 at 14:15













                    39














                    I just added right after the apply plugin: 'com.google.gms.google-services' at the bottom of my build.gradle :



                    apply plugin: 'com.google.gms.google-services'
                    // Work around
                    com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true





                    share|improve this answer























                    • Thank you! Is this a safe fix, though?

                      – JeremyF
                      Sep 21 '18 at 3:20











                    • @JeremyF this solution has been successfully used since June 2018 in my real projects that have thousands of users but "...THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY..." :)

                      – Dima Kozhevin
                      Sep 21 '18 at 6:06











                    • Amazing !! Thank you

                      – Arash Hatami
                      Nov 16 '18 at 15:59















                    39














                    I just added right after the apply plugin: 'com.google.gms.google-services' at the bottom of my build.gradle :



                    apply plugin: 'com.google.gms.google-services'
                    // Work around
                    com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true





                    share|improve this answer























                    • Thank you! Is this a safe fix, though?

                      – JeremyF
                      Sep 21 '18 at 3:20











                    • @JeremyF this solution has been successfully used since June 2018 in my real projects that have thousands of users but "...THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY..." :)

                      – Dima Kozhevin
                      Sep 21 '18 at 6:06











                    • Amazing !! Thank you

                      – Arash Hatami
                      Nov 16 '18 at 15:59













                    39












                    39








                    39







                    I just added right after the apply plugin: 'com.google.gms.google-services' at the bottom of my build.gradle :



                    apply plugin: 'com.google.gms.google-services'
                    // Work around
                    com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true





                    share|improve this answer













                    I just added right after the apply plugin: 'com.google.gms.google-services' at the bottom of my build.gradle :



                    apply plugin: 'com.google.gms.google-services'
                    // Work around
                    com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 28 '18 at 9:40









                    Dima KozhevinDima Kozhevin

                    2,22862135




                    2,22862135












                    • Thank you! Is this a safe fix, though?

                      – JeremyF
                      Sep 21 '18 at 3:20











                    • @JeremyF this solution has been successfully used since June 2018 in my real projects that have thousands of users but "...THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY..." :)

                      – Dima Kozhevin
                      Sep 21 '18 at 6:06











                    • Amazing !! Thank you

                      – Arash Hatami
                      Nov 16 '18 at 15:59

















                    • Thank you! Is this a safe fix, though?

                      – JeremyF
                      Sep 21 '18 at 3:20











                    • @JeremyF this solution has been successfully used since June 2018 in my real projects that have thousands of users but "...THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY..." :)

                      – Dima Kozhevin
                      Sep 21 '18 at 6:06











                    • Amazing !! Thank you

                      – Arash Hatami
                      Nov 16 '18 at 15:59
















                    Thank you! Is this a safe fix, though?

                    – JeremyF
                    Sep 21 '18 at 3:20





                    Thank you! Is this a safe fix, though?

                    – JeremyF
                    Sep 21 '18 at 3:20













                    @JeremyF this solution has been successfully used since June 2018 in my real projects that have thousands of users but "...THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY..." :)

                    – Dima Kozhevin
                    Sep 21 '18 at 6:06





                    @JeremyF this solution has been successfully used since June 2018 in my real projects that have thousands of users but "...THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY..." :)

                    – Dima Kozhevin
                    Sep 21 '18 at 6:06













                    Amazing !! Thank you

                    – Arash Hatami
                    Nov 16 '18 at 15:59





                    Amazing !! Thank you

                    – Arash Hatami
                    Nov 16 '18 at 15:59











                    6














                    Update project gradle play service dependency with latest release :

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

                    and



                    Update project firebase products usage as per firebase latest release note






                    share|improve this answer























                    • it is already updated, check my question

                      – Giorgio
                      May 29 '18 at 8:33











                    • Please try to invalidate,clean and rebuild project.

                      – Gautam Dev
                      May 29 '18 at 9:12











                    • I tried it and it didn't solve the issue, I updated the question with the solution

                      – Giorgio
                      May 29 '18 at 9:54















                    6














                    Update project gradle play service dependency with latest release :

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

                    and



                    Update project firebase products usage as per firebase latest release note






                    share|improve this answer























                    • it is already updated, check my question

                      – Giorgio
                      May 29 '18 at 8:33











                    • Please try to invalidate,clean and rebuild project.

                      – Gautam Dev
                      May 29 '18 at 9:12











                    • I tried it and it didn't solve the issue, I updated the question with the solution

                      – Giorgio
                      May 29 '18 at 9:54













                    6












                    6








                    6







                    Update project gradle play service dependency with latest release :

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

                    and



                    Update project firebase products usage as per firebase latest release note






                    share|improve this answer













                    Update project gradle play service dependency with latest release :

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

                    and



                    Update project firebase products usage as per firebase latest release note







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 29 '18 at 4:16









                    Gautam DevGautam Dev

                    35913




                    35913












                    • it is already updated, check my question

                      – Giorgio
                      May 29 '18 at 8:33











                    • Please try to invalidate,clean and rebuild project.

                      – Gautam Dev
                      May 29 '18 at 9:12











                    • I tried it and it didn't solve the issue, I updated the question with the solution

                      – Giorgio
                      May 29 '18 at 9:54

















                    • it is already updated, check my question

                      – Giorgio
                      May 29 '18 at 8:33











                    • Please try to invalidate,clean and rebuild project.

                      – Gautam Dev
                      May 29 '18 at 9:12











                    • I tried it and it didn't solve the issue, I updated the question with the solution

                      – Giorgio
                      May 29 '18 at 9:54
















                    it is already updated, check my question

                    – Giorgio
                    May 29 '18 at 8:33





                    it is already updated, check my question

                    – Giorgio
                    May 29 '18 at 8:33













                    Please try to invalidate,clean and rebuild project.

                    – Gautam Dev
                    May 29 '18 at 9:12





                    Please try to invalidate,clean and rebuild project.

                    – Gautam Dev
                    May 29 '18 at 9:12













                    I tried it and it didn't solve the issue, I updated the question with the solution

                    – Giorgio
                    May 29 '18 at 9:54





                    I tried it and it didn't solve the issue, I updated the question with the solution

                    – Giorgio
                    May 29 '18 at 9:54











                    6














                    this shoud be on top if you use firebase libraries:



                    implementation "com.google.firebase:firebase-core:16.0.0"





                    share|improve this answer























                    • For those using this with the android gradle plugin >= 3.1 and google-services=4.1.0 this may be your issue~

                      – squirly
                      Sep 25 '18 at 17:18















                    6














                    this shoud be on top if you use firebase libraries:



                    implementation "com.google.firebase:firebase-core:16.0.0"





                    share|improve this answer























                    • For those using this with the android gradle plugin >= 3.1 and google-services=4.1.0 this may be your issue~

                      – squirly
                      Sep 25 '18 at 17:18













                    6












                    6








                    6







                    this shoud be on top if you use firebase libraries:



                    implementation "com.google.firebase:firebase-core:16.0.0"





                    share|improve this answer













                    this shoud be on top if you use firebase libraries:



                    implementation "com.google.firebase:firebase-core:16.0.0"






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Aug 1 '18 at 16:16









                    Sergio BañaresSergio Bañares

                    8615




                    8615












                    • For those using this with the android gradle plugin >= 3.1 and google-services=4.1.0 this may be your issue~

                      – squirly
                      Sep 25 '18 at 17:18

















                    • For those using this with the android gradle plugin >= 3.1 and google-services=4.1.0 this may be your issue~

                      – squirly
                      Sep 25 '18 at 17:18
















                    For those using this with the android gradle plugin >= 3.1 and google-services=4.1.0 this may be your issue~

                    – squirly
                    Sep 25 '18 at 17:18





                    For those using this with the android gradle plugin >= 3.1 and google-services=4.1.0 this may be your issue~

                    – squirly
                    Sep 25 '18 at 17:18











                    3














                    In my case the issue was OneSignal, which somehow broke everything down.



                    They even have a dedicated library for this: https://github.com/OneSignal/OneSignal-Gradle-Plugin
                    and the actual issue was that OneSignal was inside my app-level gradle, instead of root one.



                    Freaking ridiculous!






                    share|improve this answer


















                    • 1





                      From their Android SDK Install docs it looks like they want it in the app/build.gradle documentation.onesignal.com/docs/android-sdk-setup

                      – Jim Factor
                      Jun 12 '18 at 5:35











                    • @JimFactor Yeah, but somehow this was the issue and I've spent like half a day trying to figure it up; ended up this this solution and everything seems just fine since then

                      – egorikem
                      Jun 13 '18 at 8:37















                    3














                    In my case the issue was OneSignal, which somehow broke everything down.



                    They even have a dedicated library for this: https://github.com/OneSignal/OneSignal-Gradle-Plugin
                    and the actual issue was that OneSignal was inside my app-level gradle, instead of root one.



                    Freaking ridiculous!






                    share|improve this answer


















                    • 1





                      From their Android SDK Install docs it looks like they want it in the app/build.gradle documentation.onesignal.com/docs/android-sdk-setup

                      – Jim Factor
                      Jun 12 '18 at 5:35











                    • @JimFactor Yeah, but somehow this was the issue and I've spent like half a day trying to figure it up; ended up this this solution and everything seems just fine since then

                      – egorikem
                      Jun 13 '18 at 8:37













                    3












                    3








                    3







                    In my case the issue was OneSignal, which somehow broke everything down.



                    They even have a dedicated library for this: https://github.com/OneSignal/OneSignal-Gradle-Plugin
                    and the actual issue was that OneSignal was inside my app-level gradle, instead of root one.



                    Freaking ridiculous!






                    share|improve this answer













                    In my case the issue was OneSignal, which somehow broke everything down.



                    They even have a dedicated library for this: https://github.com/OneSignal/OneSignal-Gradle-Plugin
                    and the actual issue was that OneSignal was inside my app-level gradle, instead of root one.



                    Freaking ridiculous!







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 7 '18 at 10:53









                    egorikemegorikem

                    666716




                    666716







                    • 1





                      From their Android SDK Install docs it looks like they want it in the app/build.gradle documentation.onesignal.com/docs/android-sdk-setup

                      – Jim Factor
                      Jun 12 '18 at 5:35











                    • @JimFactor Yeah, but somehow this was the issue and I've spent like half a day trying to figure it up; ended up this this solution and everything seems just fine since then

                      – egorikem
                      Jun 13 '18 at 8:37












                    • 1





                      From their Android SDK Install docs it looks like they want it in the app/build.gradle documentation.onesignal.com/docs/android-sdk-setup

                      – Jim Factor
                      Jun 12 '18 at 5:35











                    • @JimFactor Yeah, but somehow this was the issue and I've spent like half a day trying to figure it up; ended up this this solution and everything seems just fine since then

                      – egorikem
                      Jun 13 '18 at 8:37







                    1




                    1





                    From their Android SDK Install docs it looks like they want it in the app/build.gradle documentation.onesignal.com/docs/android-sdk-setup

                    – Jim Factor
                    Jun 12 '18 at 5:35





                    From their Android SDK Install docs it looks like they want it in the app/build.gradle documentation.onesignal.com/docs/android-sdk-setup

                    – Jim Factor
                    Jun 12 '18 at 5:35













                    @JimFactor Yeah, but somehow this was the issue and I've spent like half a day trying to figure it up; ended up this this solution and everything seems just fine since then

                    – egorikem
                    Jun 13 '18 at 8:37





                    @JimFactor Yeah, but somehow this was the issue and I've spent like half a day trying to figure it up; ended up this this solution and everything seems just fine since then

                    – egorikem
                    Jun 13 '18 at 8:37











                    2














                    My problem was that I was importing oneSignal gradle plugin but I do not import the full apply plugin: 'com.google.gms.google-services'.



                    To fix I just had to add the implementations I was using.






                    share|improve this answer



























                      2














                      My problem was that I was importing oneSignal gradle plugin but I do not import the full apply plugin: 'com.google.gms.google-services'.



                      To fix I just had to add the implementations I was using.






                      share|improve this answer

























                        2












                        2








                        2







                        My problem was that I was importing oneSignal gradle plugin but I do not import the full apply plugin: 'com.google.gms.google-services'.



                        To fix I just had to add the implementations I was using.






                        share|improve this answer













                        My problem was that I was importing oneSignal gradle plugin but I do not import the full apply plugin: 'com.google.gms.google-services'.



                        To fix I just had to add the implementations I was using.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Sep 20 '18 at 13:09









                        Karl TaylorKarl Taylor

                        1,45511432




                        1,45511432





















                            1














                            repositories 
                            maven
                            url "https://maven.google.com"

                            jcenter()




                            Try this one , place maven url on top inside repositories in build.gradle






                            share|improve this answer























                            • it is already present, I updated my question

                              – Giorgio
                              May 29 '18 at 8:33











                            • @Giorgio I faced same issue, after placing maven url "maven.google.com" on top (Before jcenter() ) that worked for me....i am talking about sequences

                              – Ravi Kishan Nag
                              May 29 '18 at 8:54












                            • I tried it and it didn't solve the issue, I updated the question with the solution

                              – Giorgio
                              May 29 '18 at 9:54















                            1














                            repositories 
                            maven
                            url "https://maven.google.com"

                            jcenter()




                            Try this one , place maven url on top inside repositories in build.gradle






                            share|improve this answer























                            • it is already present, I updated my question

                              – Giorgio
                              May 29 '18 at 8:33











                            • @Giorgio I faced same issue, after placing maven url "maven.google.com" on top (Before jcenter() ) that worked for me....i am talking about sequences

                              – Ravi Kishan Nag
                              May 29 '18 at 8:54












                            • I tried it and it didn't solve the issue, I updated the question with the solution

                              – Giorgio
                              May 29 '18 at 9:54













                            1












                            1








                            1







                            repositories 
                            maven
                            url "https://maven.google.com"

                            jcenter()




                            Try this one , place maven url on top inside repositories in build.gradle






                            share|improve this answer













                            repositories 
                            maven
                            url "https://maven.google.com"

                            jcenter()




                            Try this one , place maven url on top inside repositories in build.gradle







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 29 '18 at 6:21









                            Ravi Kishan NagRavi Kishan Nag

                            194




                            194












                            • it is already present, I updated my question

                              – Giorgio
                              May 29 '18 at 8:33











                            • @Giorgio I faced same issue, after placing maven url "maven.google.com" on top (Before jcenter() ) that worked for me....i am talking about sequences

                              – Ravi Kishan Nag
                              May 29 '18 at 8:54












                            • I tried it and it didn't solve the issue, I updated the question with the solution

                              – Giorgio
                              May 29 '18 at 9:54

















                            • it is already present, I updated my question

                              – Giorgio
                              May 29 '18 at 8:33











                            • @Giorgio I faced same issue, after placing maven url "maven.google.com" on top (Before jcenter() ) that worked for me....i am talking about sequences

                              – Ravi Kishan Nag
                              May 29 '18 at 8:54












                            • I tried it and it didn't solve the issue, I updated the question with the solution

                              – Giorgio
                              May 29 '18 at 9:54
















                            it is already present, I updated my question

                            – Giorgio
                            May 29 '18 at 8:33





                            it is already present, I updated my question

                            – Giorgio
                            May 29 '18 at 8:33













                            @Giorgio I faced same issue, after placing maven url "maven.google.com" on top (Before jcenter() ) that worked for me....i am talking about sequences

                            – Ravi Kishan Nag
                            May 29 '18 at 8:54






                            @Giorgio I faced same issue, after placing maven url "maven.google.com" on top (Before jcenter() ) that worked for me....i am talking about sequences

                            – Ravi Kishan Nag
                            May 29 '18 at 8:54














                            I tried it and it didn't solve the issue, I updated the question with the solution

                            – Giorgio
                            May 29 '18 at 9:54





                            I tried it and it didn't solve the issue, I updated the question with the solution

                            – Giorgio
                            May 29 '18 at 9:54











                            1














                            Update build.gradle



                            buildscript 
                            ...
                            dependencies
                            classpath 'com.android.tools.build:gradle:3.1.2' //< update version
                            classpath 'com.google.gms:google-services:3.1.1' //< update version




                            This would help you I guess






                            share|improve this answer























                            • check my question, they are already updated to the last version

                              – Giorgio
                              May 29 '18 at 8:29















                            1














                            Update build.gradle



                            buildscript 
                            ...
                            dependencies
                            classpath 'com.android.tools.build:gradle:3.1.2' //< update version
                            classpath 'com.google.gms:google-services:3.1.1' //< update version




                            This would help you I guess






                            share|improve this answer























                            • check my question, they are already updated to the last version

                              – Giorgio
                              May 29 '18 at 8:29













                            1












                            1








                            1







                            Update build.gradle



                            buildscript 
                            ...
                            dependencies
                            classpath 'com.android.tools.build:gradle:3.1.2' //< update version
                            classpath 'com.google.gms:google-services:3.1.1' //< update version




                            This would help you I guess






                            share|improve this answer













                            Update build.gradle



                            buildscript 
                            ...
                            dependencies
                            classpath 'com.android.tools.build:gradle:3.1.2' //< update version
                            classpath 'com.google.gms:google-services:3.1.1' //< update version




                            This would help you I guess







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 29 '18 at 6:27









                            EhteshamEhtesham

                            255




                            255












                            • check my question, they are already updated to the last version

                              – Giorgio
                              May 29 '18 at 8:29

















                            • check my question, they are already updated to the last version

                              – Giorgio
                              May 29 '18 at 8:29
















                            check my question, they are already updated to the last version

                            – Giorgio
                            May 29 '18 at 8:29





                            check my question, they are already updated to the last version

                            – Giorgio
                            May 29 '18 at 8:29











                            1














                            Update the build.gradle file from the project root folder. I've tried this and it was helping.



                            buildscript 
                            repositories
                            jcenter()
                            maven
                            url 'https://maven.google.com/'
                            name 'Google'

                            google()

                            dependencies

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


                            allprojects
                            repositories
                            google()
                            ----






                            share|improve this answer



























                              1














                              Update the build.gradle file from the project root folder. I've tried this and it was helping.



                              buildscript 
                              repositories
                              jcenter()
                              maven
                              url 'https://maven.google.com/'
                              name 'Google'

                              google()

                              dependencies

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


                              allprojects
                              repositories
                              google()
                              ----






                              share|improve this answer

























                                1












                                1








                                1







                                Update the build.gradle file from the project root folder. I've tried this and it was helping.



                                buildscript 
                                repositories
                                jcenter()
                                maven
                                url 'https://maven.google.com/'
                                name 'Google'

                                google()

                                dependencies

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


                                allprojects
                                repositories
                                google()
                                ----






                                share|improve this answer













                                Update the build.gradle file from the project root folder. I've tried this and it was helping.



                                buildscript 
                                repositories
                                jcenter()
                                maven
                                url 'https://maven.google.com/'
                                name 'Google'

                                google()

                                dependencies

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


                                allprojects
                                repositories
                                google()
                                ----







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered May 29 '18 at 10:04









                                lallal

                                8581015




                                8581015





















                                    1














                                    Make sure you added following line in bottom of app gradle



                                    apply plugin: 'com.google.gms.google-services'


                                    Make sure you are using compatible google-services in project level gradle



                                    dependencies 
                                    classpath 'com.google.gms:google-services:4.0.1'



                                    Check if you have added following dependency



                                    implementation 'com.google.firebase:firebase-core:16.0.1'





                                    share|improve this answer



























                                      1














                                      Make sure you added following line in bottom of app gradle



                                      apply plugin: 'com.google.gms.google-services'


                                      Make sure you are using compatible google-services in project level gradle



                                      dependencies 
                                      classpath 'com.google.gms:google-services:4.0.1'



                                      Check if you have added following dependency



                                      implementation 'com.google.firebase:firebase-core:16.0.1'





                                      share|improve this answer

























                                        1












                                        1








                                        1







                                        Make sure you added following line in bottom of app gradle



                                        apply plugin: 'com.google.gms.google-services'


                                        Make sure you are using compatible google-services in project level gradle



                                        dependencies 
                                        classpath 'com.google.gms:google-services:4.0.1'



                                        Check if you have added following dependency



                                        implementation 'com.google.firebase:firebase-core:16.0.1'





                                        share|improve this answer













                                        Make sure you added following line in bottom of app gradle



                                        apply plugin: 'com.google.gms.google-services'


                                        Make sure you are using compatible google-services in project level gradle



                                        dependencies 
                                        classpath 'com.google.gms:google-services:4.0.1'



                                        Check if you have added following dependency



                                        implementation 'com.google.firebase:firebase-core:16.0.1'






                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Jul 14 '18 at 7:15









                                        snjsnj

                                        1009




                                        1009





















                                            1














                                            I have answered a similar issue here. You need to keep versions of play services and firebase to latest one. Check here for links
                                            https://stackoverflow.com/a/52696667/3333878






                                            share|improve this answer



























                                              1














                                              I have answered a similar issue here. You need to keep versions of play services and firebase to latest one. Check here for links
                                              https://stackoverflow.com/a/52696667/3333878






                                              share|improve this answer

























                                                1












                                                1








                                                1







                                                I have answered a similar issue here. You need to keep versions of play services and firebase to latest one. Check here for links
                                                https://stackoverflow.com/a/52696667/3333878






                                                share|improve this answer













                                                I have answered a similar issue here. You need to keep versions of play services and firebase to latest one. Check here for links
                                                https://stackoverflow.com/a/52696667/3333878







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Oct 9 '18 at 7:12









                                                abitcodeabitcode

                                                495516




                                                495516





















                                                    1














                                                    This worked for me.this shoud be on top if you use firebase libraries:



                                                    implementation "com.google.firebase:firebase-core:15.0.0"






                                                    share|improve this answer



























                                                      1














                                                      This worked for me.this shoud be on top if you use firebase libraries:



                                                      implementation "com.google.firebase:firebase-core:15.0.0"






                                                      share|improve this answer

























                                                        1












                                                        1








                                                        1







                                                        This worked for me.this shoud be on top if you use firebase libraries:



                                                        implementation "com.google.firebase:firebase-core:15.0.0"






                                                        share|improve this answer













                                                        This worked for me.this shoud be on top if you use firebase libraries:



                                                        implementation "com.google.firebase:firebase-core:15.0.0"







                                                        share|improve this answer












                                                        share|improve this answer



                                                        share|improve this answer










                                                        answered Jan 20 at 17:12









                                                        fmagfmag

                                                        114




                                                        114





















                                                            1














                                                            For future users: Open build.gradle files and just hover your mouse on the dependencies and a tooltip gonna show up telling your the newest version and that should solve your problem.




                                                            Beware that Firebase Documentations does not have the newest versions.







                                                            share|improve this answer



























                                                              1














                                                              For future users: Open build.gradle files and just hover your mouse on the dependencies and a tooltip gonna show up telling your the newest version and that should solve your problem.




                                                              Beware that Firebase Documentations does not have the newest versions.







                                                              share|improve this answer

























                                                                1












                                                                1








                                                                1







                                                                For future users: Open build.gradle files and just hover your mouse on the dependencies and a tooltip gonna show up telling your the newest version and that should solve your problem.




                                                                Beware that Firebase Documentations does not have the newest versions.







                                                                share|improve this answer













                                                                For future users: Open build.gradle files and just hover your mouse on the dependencies and a tooltip gonna show up telling your the newest version and that should solve your problem.




                                                                Beware that Firebase Documentations does not have the newest versions.








                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered Mar 3 at 9:44









                                                                MohammadLMohammadL

                                                                918918




                                                                918918





















                                                                    0














                                                                    Try to set



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



                                                                    instead of



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



                                                                    It's helped in my case, but I don't know the cause of the error.






                                                                    share|improve this answer



























                                                                      0














                                                                      Try to set



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



                                                                      instead of



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



                                                                      It's helped in my case, but I don't know the cause of the error.






                                                                      share|improve this answer

























                                                                        0












                                                                        0








                                                                        0







                                                                        Try to set



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



                                                                        instead of



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



                                                                        It's helped in my case, but I don't know the cause of the error.






                                                                        share|improve this answer













                                                                        Try to set



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



                                                                        instead of



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



                                                                        It's helped in my case, but I don't know the cause of the error.







                                                                        share|improve this answer












                                                                        share|improve this answer



                                                                        share|improve this answer










                                                                        answered Jun 26 '18 at 7:45









                                                                        Vishrut MavaniVishrut Mavani

                                                                        750418




                                                                        750418





















                                                                            0














                                                                            Try to set



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


                                                                            instead of



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


                                                                            It's helped in my case, but I don't know the cause of the error.






                                                                            share|improve this answer























                                                                            • downgrading is not a good solution

                                                                              – Shayan_Aryan
                                                                              Mar 7 at 12:25















                                                                            0














                                                                            Try to set



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


                                                                            instead of



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


                                                                            It's helped in my case, but I don't know the cause of the error.






                                                                            share|improve this answer























                                                                            • downgrading is not a good solution

                                                                              – Shayan_Aryan
                                                                              Mar 7 at 12:25













                                                                            0












                                                                            0








                                                                            0







                                                                            Try to set



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


                                                                            instead of



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


                                                                            It's helped in my case, but I don't know the cause of the error.






                                                                            share|improve this answer













                                                                            Try to set



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


                                                                            instead of



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


                                                                            It's helped in my case, but I don't know the cause of the error.







                                                                            share|improve this answer












                                                                            share|improve this answer



                                                                            share|improve this answer










                                                                            answered Dec 17 '18 at 13:03









                                                                            Sujeet KumarSujeet Kumar

                                                                            502614




                                                                            502614












                                                                            • downgrading is not a good solution

                                                                              – Shayan_Aryan
                                                                              Mar 7 at 12:25

















                                                                            • downgrading is not a good solution

                                                                              – Shayan_Aryan
                                                                              Mar 7 at 12:25
















                                                                            downgrading is not a good solution

                                                                            – Shayan_Aryan
                                                                            Mar 7 at 12:25





                                                                            downgrading is not a good solution

                                                                            – Shayan_Aryan
                                                                            Mar 7 at 12:25











                                                                            0














                                                                            Check Answer by Bhupendra Acharya from
                                                                            https://groups.google.com/forum/#!topic/firebase-talk/XbGR-YrsTTA works for you. I got the following error
                                                                            The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
                                                                            While using



                                                                            implementation 'com.google.firebase:firebase-core:16.0.1'


                                                                            And resolved by updating the version



                                                                            implementation 'com.google.firebase:firebase-core:16.0.4'





                                                                            share|improve this answer



























                                                                              0














                                                                              Check Answer by Bhupendra Acharya from
                                                                              https://groups.google.com/forum/#!topic/firebase-talk/XbGR-YrsTTA works for you. I got the following error
                                                                              The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
                                                                              While using



                                                                              implementation 'com.google.firebase:firebase-core:16.0.1'


                                                                              And resolved by updating the version



                                                                              implementation 'com.google.firebase:firebase-core:16.0.4'





                                                                              share|improve this answer

























                                                                                0












                                                                                0








                                                                                0







                                                                                Check Answer by Bhupendra Acharya from
                                                                                https://groups.google.com/forum/#!topic/firebase-talk/XbGR-YrsTTA works for you. I got the following error
                                                                                The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
                                                                                While using



                                                                                implementation 'com.google.firebase:firebase-core:16.0.1'


                                                                                And resolved by updating the version



                                                                                implementation 'com.google.firebase:firebase-core:16.0.4'





                                                                                share|improve this answer













                                                                                Check Answer by Bhupendra Acharya from
                                                                                https://groups.google.com/forum/#!topic/firebase-talk/XbGR-YrsTTA works for you. I got the following error
                                                                                The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
                                                                                While using



                                                                                implementation 'com.google.firebase:firebase-core:16.0.1'


                                                                                And resolved by updating the version



                                                                                implementation 'com.google.firebase:firebase-core:16.0.4'






                                                                                share|improve this answer












                                                                                share|improve this answer



                                                                                share|improve this answer










                                                                                answered Feb 20 at 13:44









                                                                                Ganesh KannaGanesh Kanna

                                                                                1,5121325




                                                                                1,5121325





















                                                                                    0














                                                                                    update classpath for com.google.firebase:firebase-core:16+



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





                                                                                    share|improve this answer



























                                                                                      0














                                                                                      update classpath for com.google.firebase:firebase-core:16+



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





                                                                                      share|improve this answer

























                                                                                        0












                                                                                        0








                                                                                        0







                                                                                        update classpath for com.google.firebase:firebase-core:16+



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





                                                                                        share|improve this answer













                                                                                        update classpath for com.google.firebase:firebase-core:16+



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






                                                                                        share|improve this answer












                                                                                        share|improve this answer



                                                                                        share|improve this answer










                                                                                        answered Mar 8 at 13:40









                                                                                        kaushalkaushal

                                                                                        15911




                                                                                        15911



























                                                                                            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.




                                                                                            draft saved


                                                                                            draft discarded














                                                                                            StackExchange.ready(
                                                                                            function ()
                                                                                            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50569501%2fgradle-sync-fails-play-services-measurement-base%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

                                                                                            1928 у кіно

                                                                                            Захаров Федір Захарович

                                                                                            Ель Греко