Firebase Duplicate Classes

I just installed the “Firebase Features” plug-in and am now getting a Duplicate Classes build error. I have done about 40 successful builds before installing so it’s clearly related to the plug-in. I’ve tried deleting Intermediate folders, converting the project from Blueprint to C++ and rebuilding, changing Gradle version, updating Java and other fixes.

I have reached out to the developer but haven’t heard back yet and I need to deploy this within the next week (Authentication is the final thing I need to add) so any chance someone here can advise on how to fix this?

I feel like I understand the error itself, but the main solutions I’ve seen are to exclude one of the classes, but I don’t know which one to exclude and if by doing so if something that uses it will break.

Help? Lol

UATHelper: Packaging (Android (ASTC)): Execution failed for task ':app:checkDebugDuplicateClasses'.
UATHelper: Packaging (Android (ASTC)): > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
UATHelper: Packaging (Android (ASTC)):    > Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules core-1.9.0.aar -> jetified-core-1.9.0-runtime (com.google.android.play:core:1.9.0) and core-common-2.0.3.aar -> jetified-core-common-2.0.3-runtime (com.google.android.play:core-common:2.0.3)
UATHelper: Packaging (Android (ASTC)):      Duplicate class com.google.android.play.core.common.LocalTestingException found in modules core-1.9.0.aar -> jetified-core-1.9.0-runtime (com.google.android.play:core:1.9.0) and core-common-2.0.3.aar -> jetified-core-common-2.0.3-runtime (com.google.android.play:core-common:2.0.3)
UATHelper: Packaging (Android (ASTC)):      Duplicate class com.google.android.play.core.common.PlayCoreDialogWrapperActivity found in modules core-1.9.0.aar -> jetified-core-1.9.0-runtime (com.google.android.play:core:1.9.0) and core-common-2.0.3.aar -> jetified-core-common-2.0.3-runtime (com.google.android.play:core-common:2.0.3)
UATHelper: Packaging (Android (ASTC)):      Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules core-1.9.0.aar -> jetified-core-1.9.0-runtime (com.google.android.play:core:1.9.0) and core-common-2.0.3.aar -> jetified-core-common-2.0.3-runtime (com.google.android.play:core-common:2.0.3)

I’m now thinking this error is from the Convai plug-in not Firebase because the only reference I can find to playcore library is in the Convai XML file and it specifically implements com.google.android.play:core:1.9.0

Trying to directly update the implementation and see if it breaks anything. Will report back and hopefully, in the meantime, someone has some insight.

Perhaps me connecting to Firebase actually causes it to use that code and it finally flagged it? :person_shrugging:

nope its firebase plugin - apparently this a a common issue with the firebase plugin and i cannot find a fix anywhere - copilot and gemeni have suggested different things so im gonna try that.

Yeah I tried using firebase plugins before that have c++ SDK and they are always a pain. I just make firebase functions and call them via simple HTTP requests to do what I want now as that works on every platform imaginable and with nearly every feature.

Firebase also has a web api endpoint you can use if all you need is authentication features. ChatGPT can read that docs page from google and tell you how to integrate it with unreal.