Stephen Aydt
Stephen Aydt

Reputation: 47

Flutter Dart on windows 10

When I am running any command that uses dart the response is always as follows;

building flutter tool... 
Running  Pub upgrade... 
The current Dart SDK version is 2.10.0-0.0.dev.flutter-9dca49e71e.

Because flutter_tools depends on collection >=1.15.0-nnbd <1.15.0-nullsafety.2 which requires SDK version >=2.9.0-18.0 <=2.9.10, version solving failed.

I am not able to switch the version nor the channel as those commands run through the same response. I tried to uninstall flutter and dart, but I have only gotten back to the same issues.

Any help?

Upvotes: 0

Views: 413

Answers (2)

bshelbourne15
bshelbourne15

Reputation: 121

Navigate to where to your flutter install directory e.g. C:\Tools\Flutter and do a git pull.

After that you should be able to run any command, such as flutter --help and the Dart SDK will be on the correct version.

This can be verified by running flutter upgrade

Upvotes: 1

Stephen Aydt
Stephen Aydt

Reputation: 47

I just needed to update my Path ENV Variable

Upvotes: 0

Related Questions