com.google.android.gms:play-services-measurement-base is being requested by various other libraries
The actual problem is discussed in the May, 23rd release note of https://developers.google.com/android/guides/releases#may_23_2018
Basically, you need to bump all Play Services and Firebase libraries to their latest version (which may be different for each since version 15).You may use https://mvnrepository.com/ to find the latest version for each library.
See also: https://firebase.google.com/support/release-notes/android#20180523
only working solution for me:
put it on the bottom of build.gradle
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
Make Sure to keep Your Google play services dependencies and Firebase dependencies to latest version.
Also check all your gradle files, module level and project level, there has to be only one common version of dependency across all modules. Can be solved by keeping those versions in project level gradle variable.
Check here for Google play services update version
Check here for Firebase updated version
Check here for Firebase updated version for Android