Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate class com.google.android.gms.internal.firebase_messaging.zza found in modules

Just started this error on Android build. Please help. "Duplicate class com.google.android.gms.internal.firebase_messaging.zza found in modules jetified-firebase-iid-19.0.0-runtime.jar (com.google.firebase:firebase-iid:19.0.0) and jetified-firebase-messaging-22.0.0-runtime.jar (com.google.firebase:firebase-messaging:22.0.0)"

like image 264
Sanj Ediris Avatar asked May 13 '21 07:05

Sanj Ediris


People also ask

Which Firebase SDKs use the'Google-services'plugin?

Note: The 'google-services' gradle plugin is used by all Firebase SDKs, but this plugin is not related to Google Play services. Which Firebase SDKs require Google Play services?

Do Firebase Android SDKs depend on Google Play Services?

Dependencies of Firebase Android SDKs on Google Play services. Some Firebase Android SDKs depend on Google Play services , which means they will only run on devices and emulators with Google Play...

What are the different types of Firebase SDK?

Firebase SDKs can be divided into three categories: Play services required — These SDKs require Google Play services, otherwise they have no functionality. Play services recommended — These SDKs require Google Play services to have full functionality, but they still offer most functionality even without Google Play services.

Why is Firebase messaging not working in Firebase?

You need to check which libs are causing the issue and do something like: implementation 'com.google.firebase:firebase-messaging:22.0.0' implementation ('com.google.firebase:firebase-iid:21.1.0') { transitive = true } In my case the problem depends on the coexistence of messaging and functions.


Video Answer


1 Answers

In build.gradle:

implementation "com.google.firebase:firebase-iid:21.1.0"
like image 136
Ramananda Sarkar Avatar answered Sep 22 '22 19:09

Ramananda Sarkar