Hi Everyone,
I was trying to add the google admob dependency in the project
( com.google.android.gms:play-services-ads:22.0.0) but getting
Duplicate class com.google.android.gms.internal.measurement.zzbu
found in modules jetified-play-services-measurement-17.4.3-runtime
(com.google.android.gms:play-services-measurement:17.4.3) and
jetified-play-services-measurement-sdk-api-20.1.2-runtime
(com.google.android.gms:play-services-measurement-sdk-api:20.1.2) exception,
I think this is getting logged as i am using com.google.firebase:firebase-core:17.4.3
as it is also adding com.google.android.gms internally which has a different version which gets imported by play-services-ads
Does anyone knows how to resolve this?
If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:
1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002l9ivRQAQ&entry.80707362=001772572. Fill out all fields, and attach your file(s).
3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.
Regards,![]() |
Mobile Ads SDK Team |
When you use the Firebase BoM in your app, the BoM automatically pulls in the individual library versions mapped to BoM's version. All the individual library versions will be compatible. When you update the BoM's version in your app, all the Firebase libraries that you use in your app will update to the versions mapped to that BoM version.
The BoM acts like a sort of manifest for all your Firebase libraries. This prevents Duplicate Class error you encountered. This will not cause problems to those libraries version and create an issue at production. You can read more in this documentation for more information (https://firebase.google.com/docs/android/learn-more#bom)