Gradle sync fails - play-services-measurement-base

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.


this shoud be on top if you use firebase libraries:

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

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

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