Flutter firebase packages versions conflicting between messaging, core and analytics

Viewed 380

I have 3 packages from firebase: firebase_core: ^0.5.0+1 firebase_messaging: ^7.0.3 firebase_analytics: ^7.0.1 when I build it fails always cuz of versions. I have tried changed versions to downgrade but couldn't able to build the app.

consele error

pod install --repo-update didn't work all pods files remove and clear cache didn't work

1 Answers

The error says that you can't use firebase_analytics >=7.0.1 with older versions of core...

Because firebase_analytics >=7.0.1 depends on firebase_core ^0.7.0 and [app_name] depends on firebase_core ^0.5.0+1, firebase_analytics >=7.0.1 is forbidden.

Either update firebase_core: ^0.7.0 or downgrade firebase_analytics: ^6.0.2 and firebase_messaging ^0.7.0

Related