You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug report] Duplicate class com.google.firebase.iid.FirebaseInstanceIdReceiver found in modules jetified-firebase-iid-20.1.5-runtime and jetified-firebase-messaging-24.0.3-runtime
#887
Open
qc-kgm opened this issue
Oct 22, 2024
· 2 comments
Firebase BOM version: 33.5
Firebase Messaging version: 24.0.3
Purpose of using com.google.mlkit:linkfirebase: I am working on a custom image labeling model using TensorFlow, following the ML Kit guidelines from Google.
After adding com.google.mlkit:linkfirebase, the following error occurred:
Duplicate class com.google.firebase.iid.FirebaseInstanceIdReceiver found in modules jetified-firebase-iid-20.1.5-runtime (com.google.firebase:firebase-iid:20.1.5) and jetified-firebase-messaging-24.0.3-runtime (com.google.firebase:firebase-messaging:24.0.3)
Question:
I noticed that the last update to the linkfirebase API in the ML Kit release notes was on 01/25/2022. Is there any workaround to resolve this issue immediately? Additionally, if the root cause of this error is related to the outdated com.google.mlkit:linkfirebase library, I would like to suggest updating this library to resolve compatibility issues with the latest versions of Firebase dependencies.
Thank you very much!
SDK Info:
com.google.mlkit:linkfirebase:17.0.0
com.google.mlkit:image-labeling-custom:17.0.3
com.google.firebase:firebase-bom:33.5.0
com.google.firebase:firebase-messaging
Smartphone:
n/a
Development Environment:
n/a
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue! We'll update com.google.mlkit:linkfirebase later to fix this issue.
In the meantime, I think you can workaround your project by adding implementation("com.google.firebase:firebase-iid:21.1.0") to your dependency. Thanks!
Thank you for your solution, but I have switched to using com.google.firebase:firebase-ml-modeldownloader following a newer guide from Google. It worked, so if anyone encounters the same issue, they can refer to this solution.
I encountered a duplicate class error after importing the following dependency:
implementation 'com.google.mlkit:linkfirebase:17.0.0'
I am using the following environment:
Firebase BOM version: 33.5
Firebase Messaging version: 24.0.3
Purpose of using com.google.mlkit:linkfirebase: I am working on a custom image labeling model using TensorFlow, following the ML Kit guidelines from Google.
After adding com.google.mlkit:linkfirebase, the following error occurred:
Duplicate class com.google.firebase.iid.FirebaseInstanceIdReceiver found in modules jetified-firebase-iid-20.1.5-runtime (com.google.firebase:firebase-iid:20.1.5) and jetified-firebase-messaging-24.0.3-runtime (com.google.firebase:firebase-messaging:24.0.3)
Question:
I noticed that the last update to the linkfirebase API in the ML Kit release notes was on 01/25/2022. Is there any workaround to resolve this issue immediately? Additionally, if the root cause of this error is related to the outdated com.google.mlkit:linkfirebase library, I would like to suggest updating this library to resolve compatibility issues with the latest versions of Firebase dependencies.
Thank you very much!
SDK Info:
Smartphone:
n/a
Development Environment:
n/a
The text was updated successfully, but these errors were encountered: