Flutter doctor hangs on start, no output

Viewed 7303

I'm trying to install Flutter on my Windows 8 computer. I unzipped files to C:/flutter and added the bin folder to the path variable. However I am stuck on the step where I have to run flutter doctor in flutter_console. The Flutter doctor hangs and only shows the blinking cursor and no output. More interestingly any other flutter command will freeze the exact same way.

screenshots

I have already tried

  1. Running flutter console as admin

  2. Reinstalling flutter

  3. Installing the dev version

  4. Use the VS code plugin to run flutter doctor

But they all led to the same result

3 Answers

So the solution of this issue is:

  1. delete folder in your flutter SDK path flutter/bin/cache (detail info here)
  2. run flutter doctor -v again will trigger downloading Dart SDK

PS: if your network is slow because of in china, check bellow:

Do things bellow in terminal maybe speed up your the download speed (for me it's speed up 3x) for changing channel:

  1. export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn (detail info here)
  2. flutter channel stable (one example of change flutter channel)
  3. flutter doctor -v (trigger downloading SDK)

Albeith in win10, these steps solved the issue for me (do not know if all are necessary)

  1. restart win
  2. run cmd as administrator
  3. flutter doctor

According to this git issue, this is mostly caused by installing flutter in a directory for which you do not own the priviledges. For example, the Program Files folder: to solve then, you can try to move the installation folder

Delete the cache folder inside bin folder of the flutter sdk then run flutter doctor it should work now.

Related