Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

flutter

dart

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

like image 628
Tim Mwaura Avatar asked Dec 12 '25 09:12

Tim Mwaura


1 Answers

I've resolved this error by following these steps:

  • Go to folder C:....\Flutter\
  • Run this command: git reset --hard HEAD

This will restore the flutter SDK folder to its original state, so no need to reinstall the SDK.

like image 148
Khalil Yamoun Avatar answered Dec 14 '25 06:12

Khalil Yamoun