Android studio reporting older dart-sdk version

887

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.

Share:
887
Kashif Mohammad
Author by

Kashif Mohammad

Updated on January 02, 2023

Comments

  • Kashif Mohammad
    Kashif Mohammad over 1 year

    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?

    • Anmol Mishra
      Anmol Mishra over 2 years
      Can you share channel name ?
    • Anmol Mishra
      Anmol Mishra over 2 years
      Open terminal commands to Upgrade Flutter – Dart SDK 1-> C:\flutter 2->run command " flutter channel master " 3->run command after switching " flutter upgrade "
    • jamesdlin
      jamesdlin over 2 years
      You clearly have multiple installations of the Flutter SDK. Figure out where they are.