Can't install firebase dependencies from pubspec.yaml in flutter?

494 views Asked by At

I am using a flutter in my mobile app and I have a problem of installing firebase dependencies in pubspec.yaml file. It gave an error. I tried many ways and I couldn't figure it out. any help ? This is an error code from bub I got

2

There are 2 answers

0
Harsh Moradiya On

Try changing the package version of url_launcher:6.1.0 https://pub.dev/packages/url_launcher I hope this will help you.

0
Cliff On

This error usually occurs when one plugin version is incompatible with another plugin it depends on.

To resolve the issue, make sure both plugin versions are compatible; and in this, case, you should update update url_launcher to url_launcher: ^6.1.0.