How can I fix "Checking Dart SDK version… << was unexpected at this time" error in Flutter?


I am facing an issue any time I try to run any app or flutter command from the terminal, this is displayed: Checking Dart SDK version... << was unexpected at this time.
Not even flutter doctor works.

Nothing seems to work and it’s so frustrating as it happened out of the blue. One moment everything was fine, now nothing works. Any help will be appreciated


I’ve resolved this error with the below steps:

  1. Go to C:\Users\{Name}\.gradle} – Delete the .gradle directory.

  2. Then Download and install the same flutter and dart SDK version in some other location and set the environment variables.


    Environment variables Before :


    Environment variables After :

  3. Then check the Android Studio event log

    Android studio log

Answered By – ramkumar

Answer Checked By – Robin (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *