100s of Duplicate class Build errors in Unity Cloud Build after Firebase upgrade

Hello,

We have a Unity project (Unity 2019.2.15f1) where we are using multiple Firebase Plugins:
Cloud Storage, Messaging & Remote Config

We recently updated the Firebase Unity Plugins from v6.7.0 to v6.15.2
The local build passed & even worked on Android phone.

BUT, it is throwing 100s of duplicate class build errors in Unity Cloud Build.
We are clueless about the issue & are struggling to find a fix for it.
Please find attached the Build Log from Unity Cloud Build.
Did anyone face similar issues?
Kindly help me fix it…

6362946–708099–100s of Duplicate class Build errors in Unity Cloud Build after Firebase upgrade - Condensed.pdf (299 KB)

Sorry to hear that you are facing this issue.

Can you please confirm that you have attempted a build locally from a fresh clone of your repository in a folder that is not your usual working folder?

We removed Firebase & added it again.
It fixed the issue!