When I ran my flutter project, it gave me this error
The current Dart SDK version is 2.17.0-105.0.dev.
Because lints 2.0.0 requires SDK version >=2.17.0-206.0.dev <3.0.0 and no versions of lints match >2.0.0 <3.0.0, lints ^2.0.0 is forbidden.
So, because firebase_flutter depends on flutter_lints ^2.0.0 which depends on lints ^2.0.0, version solving failed.
pub get failed (1; So, because firebase_flutter depends on flutter_lints ^2.0.0 which depends on lints ^2.0.0, version solving failed.)
Is there anybody who can help me please?
CodePudding user response:
There is 'pub outdated' command.
https://dart.dev/tools/pub/cmd/pub-outdated
You can analyze 'flutter pub outdated' or 'dart pub outdated' command.
And you can update all 'flutter pub upgrade' or 'dart pub upgrade'.
CodePudding user response:
You are probably using beta
, dev
or master
Flutter channel instead of stable
.
Simply run flutter upgrade
to get the latest Flutter version, which should include a newer Dart beta version as well.