flutter packages get failed depends on flutter_test any from sdk which requires SDK version <2.0.0, version solving failed flutter packages get failed depends on flutter_test any from sdk which requires SDK version <2.0.0, version solving failed flutter flutter

flutter packages get failed depends on flutter_test any from sdk which requires SDK version <2.0.0, version solving failed


I was having a similar issue:

Running "flutter packages get" in austin-feeds-me-flutter...The current Dart SDK version is 2.0.0-dev.58.0.flutter-f981f09760.Because austin_feeds_me depends on palette_generator any which requires SDK version >=2.0.0-dev.61.0 <3.0.0, version solving failed.pub get failed (1)Process finished with exit code 1

I fixed it with the following commands:

flutter channel devflutter upgrade

Fix source: https://github.com/flutter/flutter/issues/19382


just update your sdk by these codes

flutter channel devflutter upgrade

if you live in iran you need to use proxy because google no let you to use its packagesand for scoped_model you need to use below version of it in your pubspec.yaml file

dependencies:  scoped_model: ^1.0.1

and then save the file, your IDE automatically update the package


Just modify the package version in pubspec.yaml to the latest version fixed my issue.