Skip to content
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

I have an issue when building android with flutter using intercom latest version 9.0.9 #461

Closed
AsmaaMagdHelali opened this issue Sep 1, 2024 · 8 comments
Labels
crash Something is crashing platform-android Specific to Android platform

Comments

@AsmaaMagdHelali
Copy link

starting from intercom version 9.0.5. I start to get an error with only in android build only in firebase packages.
Error: Duplicate class com.google.firebase.Timestamp found in modules jetified-firebase-common-21.0.0-runtime (com.google.firebase:firebase-common:21.0.0) and jetified-firebase-firestore-24.11.0-runtime (com.google.firebase:firebase-firestore:24.11.0)

@AsmaaMagdHelali
Copy link
Author

???

@deepak786 deepak786 added platform-android Specific to Android platform support Asking for help writing an application labels Sep 3, 2024
@deepak786
Copy link
Collaborator

deepak786 commented Sep 3, 2024

From the error, seems that the issue is from Firebase packages.
Could you please try building without the intercom_flutter package to check if you get the same error or not?

If no, then please share the reproducible sample.

@deepak786 deepak786 added crash Something is crashing and removed support Asking for help writing an application labels Sep 3, 2024
@AsmaaMagdHelali
Copy link
Author

I was able to successfully build the project when I remove the intercom_flutter package

@AsmaaMagdHelali
Copy link
Author

These are the versions of firebase I used in my project pub spec file
firebase_core: 2.24.2
firebase_crashlytics: ^3.5.6
cloud_firestore: ^5.3.0

///Android gradel
gradle-7.6-all.zip

implementation platform('com.google.firebase:firebase-bom:30.4.1')

@deepak786
Copy link
Collaborator

I'm not sure if it is related but starting intercom_flutter: 9.0.5 you need to use AGP 8
For more info check this comment #436 (comment)

@minaroid
Copy link

minaroid commented Sep 10, 2024

@AsmaaMagdHelali fixed with me after using intercom_flutter: ^8.1.3

@AsmaaMagdHelali
Copy link
Author

AsmaaMagdHelali commented Sep 11, 2024

@AsmaaMagdHelali fixed with me after using intercom_flutter: ^8.1.3

yes, because starting from intercom_flutter: 9.0.5 they started to use AGP 8 🥲
so any old version will work perfect in android

@deepak786
Copy link
Collaborator

Duplicate of #436

@deepak786 deepak786 marked this as a duplicate of #436 Sep 17, 2024
@deepak786 deepak786 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Something is crashing platform-android Specific to Android platform
Projects
None yet
Development

No branches or pull requests

3 participants