Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate class.com.firebase.iid.FirebaseInstanceIdReceiver found in modules jetified-firebase-iid-20.1.5-runtime

Duplicate class.com.firebase.iid.FirebaseInstanceIdReceiver found in modules jetified-firebase-iid-20.1.5-runtime (com.google.firebase-iid:20.1.5) and jetified-firebase-messaging-23.1.1-runtime (com.Google.firebase:firebase-messaging:23.1.1) Go to the documentation to learn how to fix dependency resolution errors.

Update fcm messaging dependencies version.

like image 799
Vishal P Avatar asked Aug 23 '26 17:08

Vishal P


2 Answers

This workaround should help you.

like image 118
Maleesha97 Avatar answered Aug 25 '26 06:08

Maleesha97


Try this for resolve the issues. // Import the BoM for the Firebase platform implementation platform('com.google.firebase:firebase-bom:31.0.2')

// Add the dependencies for the Crashlytics and Analytics libraries
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation('com.google.firebase:firebase-messaging') {
    exclude group: 'com.google.firebase', module: 'firebase-iid'
}
implementation("com.google.firebase:firebase-iid:21.1.0")
like image 31
Imran khan Avatar answered Aug 25 '26 08:08

Imran khan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!