Flutter version solving failed on google_maps_flutter while running "flutter pub get" Flutter version solving failed on google_maps_flutter while running "flutter pub get" dart dart

Flutter version solving failed on google_maps_flutter while running "flutter pub get"


Follow up the steps:

flutter channel stable

flutter upgrade

Then Try again if you get the same error then

just change in your pubspec.yaml file: from thisgoogle_maps_flutter: ^0.5.33to thisgoogle_maps_flutter:

It will automatically work as it will find out the version which is compatible itself.


Try to remove the ^ in pubspec.yaml declaration

google_maps_flutter: ^0.5.33 to google_maps_flutter: '0.5.33'

If I'm not mistaken, the ^ means take this version or higher.


Update flutter version to 2.0.2 stable then clean and run app, this will solve issue