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.
This workaround should help you.
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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With