-1

I have implemented in Firebase in my android studio project and it's working fine but when i added AdMob code according to these instructions in it I am getting this error.

Instructions

ERROR: The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.3.0,16.3.0], [16.0.0,16.0.0]], but resolves to 16.3.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

Screenshot

obscure
  • 11,916
  • 2
  • 17
  • 36
Usman Khan
  • 80
  • 9
  • Maybe this topic may help: https://stackoverflow.com/questions/50577437/com-google-android-gmsplay-services-measurement-base-is-being-requested-by-vari – miyav miyav May 13 '19 at 12:07
  • Possible duplicate of [com.google.android.gms:play-services-measurement-base is being requested by various other libraries](https://stackoverflow.com/questions/50577437/com-google-android-gmsplay-services-measurement-base-is-being-requested-by-vari) – Zoe May 13 '19 at 14:29

1 Answers1

-1

In your project gradle, use this version of firebase-core. This should solve the issue!

implementation 'com.google.firebase:firebase-core:16.0.8'
Sreekant Shenoy
  • 1,420
  • 14
  • 23
  • complete code // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.4.0' classpath 'com.google.gms:google-services:4.0.1' } } allprojects { repositories { jcenter() google() } } – Usman Khan May 13 '19 at 12:20