0

We are trying to integrate Marketing Cloud SDK for our android application.But while building the application its gives us error of duplicate files of firebase.We have already implemented firebase in our code. We our using firebase version -

'com.google.firebase:firebase-messaging:20.2.0'

And Marketing Cloud SDK version is - com.salesforce.marketingcloud:marketingcloudsdk:7.4.2

After Building this error comes -

Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: 
  Duplicate class com.google.android.gms.internal.firebase_messaging.zza found in modules jetified-firebase-iid-20.1.5-runtime.jar (com.google.firebase:firebase-iid:20.1.5) and jetified-firebase-messaging-22.0.0-runtime.jar (com.google.firebase:firebase-messaging:22.0.0)
  Duplicate class com.google.android.gms.internal.firebase_messaging.zzb found in modules jetified-firebase-iid-20.1.5-runtime.jar (com.google.firebase:firebase-iid:20.1.5) and jetified-firebase-messaging-22.0.0-runtime.jar (com.google.firebase:firebase-messaging:22.0.0)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
New contributor
user104706 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2

Either remove the duplicated dependencies from your application or exclude them from the SDK using Gradle's implementation ('mc sdk') { exclude ... } syntax.

Your Answer

user104706 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.