Home > Blockchain >  Android studio reporting older dart-sdk version
Android studio reporting older dart-sdk version

Time:12-01

I have updated flutter and dart to latest version. dart --version shows following output: Dart SDK version: 2.14.4 (stable) (Wed Oct 13 11:11:32 2021 0200) on "windows_x64"

Yet while running pub.get in android studio reports error with older version of dart-sdk enter image description here

Here is a portion of my pubspec.yaml: enter image description here How to resolve this?

CodePudding user response:

It means that your Dart SDK version does not match the projects minimum required version. Did you try to update your SDK? Right now the newest version of Flutter is 2.5.3 If not so try flutter upgrade this may solve your problem.

CodePudding user response:

Go to your Android Studio settings and search for Dart SDK path and change it to the location your updated Flutter is.

Also, make sure you don't have multiple Flutter versions installed on your system.

  • Related