25
Views
2
Comments
Solved
[Firebase] Getting Duplicate Class error while integrating clevertap and firebase plugins
Question
firebase
Reactive icon
Forge asset by Labs
Application Type
Mobile

I'm currently integrating the Firebase plugin from the Forge component and the CleverTap Cordova plugin built from the GitHub repository (https://github.com/CleverTap/clevertap-cordova) into my OutSystems mobile app. However, I'm encountering a duplicate class error: 'Duplicate class com.google.firebase.iid.FirebaseInstanceIdReceiver found in modules jetified-firebase-iid-18.0.0-runtime (com.google.firebase:firebase-iid:18.0.0) and jetified-firebase-messaging-23.0.6-runtime (com.google.firebase:firebase-messaging:23.0.6).' 

Interestingly, the app gets generated successfully if I exclude either the Firebase resource file or the CleverTap plugin. 

Any insights or guidance on resolving this issue would be greatly appreciated! 
I am attaching a log file.

Please note this happens only for android build, Ios works fine

AndroidBuildLog (22).txt
UserImage.jpg
Joel Mascarenhas
Solution

Hey Team,

After some consideration, we've decided to streamline our approach by choosing between Firebase and CleverTap. Since CleverTap incorporates Firebase configuration within itself, it's not feasible to integrate both into the same application. Therefore, we'll need to prioritize one over the other for our current solution.

2021-10-17 12-36-16
Amreen Shaikh

Hi Joel,

You can check this on Github. 

https://github.com/firebase/firebase-android-sdk/issues/4206#issue-1409911151

Hope this will help you.


Regards,

Amreen


UserImage.jpg
Joel Mascarenhas
Solution

Hey Team,

After some consideration, we've decided to streamline our approach by choosing between Firebase and CleverTap. Since CleverTap incorporates Firebase configuration within itself, it's not feasible to integrate both into the same application. Therefore, we'll need to prioritize one over the other for our current solution.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.