Fixing error Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement when updating Google Play Service Ads.

Tiempo de lectura: < 1 minuto

 

When updating the version of com.google.android.gms:play-services-ads: to 2.5.0, you may encounter the following error:

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable    > Duplicate class com.google.android.gms.internal.measurement.zzhx found in modules jetified-play-services-measurement-base-20.1.2-runtim ...

*Continues with more errors.

The issue is that we also need to update the Firebase version.

To update it, we should set the version 30.1.0 as follows:

implementation platform('com.google.firebase:firebase-bom:30.1.0')

Leave a Comment