-
Notifications
You must be signed in to change notification settings - Fork 441
[Bug] Duplicate class com.google.firebase.iid.FirebaseInstanceIdReceiver found #1274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @revolt3r, Thanks for reporting this issue. Could you try these steps and see if they help resolve the issue:
I'm looking forward to your results. |
Hi @paulinon, These settings were all already in place. "Force Resolve" was successful, but I'm still getting the same "duplicate class" error during the build. I forgot to mention that I'm upgrading from 8.6.2 to 8.10.1 -> I had no issues before the update. |
Same problem here.
|
Thanks for the additional details, folks. I haven't encountered the error message yet. Could you provide the complete steps you've taken in replicating this issue? |
There are no specific steps, it's just failing during a normal build. It seems like the Messaging module is conflicting with the core Firebase (at least that's what it looks like from the error) |
I'm updating Firebase for the first time. This is how I did this:
I also tried Gradle template:
If you need content of other files, just let me know. It looks like the deprecated library |
Thanks for the additional context, folks. I was able to replicate this issue when multiple Firebase products are in the Unity project as you described. I'll relay my findings to the team. That being said, I'll be marking this as a bug for now. You may refer to this thread for any updates. |
Btw looks like the same or at least related problem #1093 The line Build worked for me after adding this dependency to |
Thanks for flagging this, it seems the extra dependency got lost when we transitioned to the new build system. The workaround is as @mrtrizer pointed out above, adding |
We've released a new version of the Firebase for Unity SDK, 9.0.0, available here: https://github.com/firebase/firebase-unity-sdk/releases/tag/v9.0.0, that includes the fix for this. Thanks again for flagging it. |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? 100%
What happened? How can we make the problem occur?
Building fails with the following error:
Execution failed for task ':launcher:checkDebugDuplicateClasses'.
The text was updated successfully, but these errors were encountered: