v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
95 stars 140 forks source link

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

Closed AsmaaMagdHelali closed 1 month ago

AsmaaMagdHelali commented 2 months ago

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 commented 2 months ago

???

deepak786 commented 2 months ago

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.

AsmaaMagdHelali commented 1 month ago

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

AsmaaMagdHelali commented 1 month ago

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 commented 1 month ago

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 https://github.com/v3rm0n/intercom_flutter/issues/436#issuecomment-2286628777

minaroid commented 1 month ago

@AsmaaMagdHelali fixed with me after using intercom_flutter: ^8.1.3

AsmaaMagdHelali commented 1 month ago

@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 :smiling_face_with_tear: so any old version will work perfect in android

deepak786 commented 1 month ago

Duplicate of https://github.com/v3rm0n/intercom_flutter/issues/436