Ad

I Got Error When Add AdMob Ads In My Project

- 1 answer

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

Ad

Answer

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

implementation 'com.google.firebase:firebase-core:16.0.8'
Ad
source: stackoverflow.com
Ad