Whenever I am opening any project on VS Code. I am getting this message: "Initializing the Flutter SDK. This may take a few minutes." It's been 40 minutes but still I am getting the same message.
I have tried closing and opening VS Code, waiting for sometime for it to respond, but it is still not working. What can I try next?
Whenever I am opening any project on VS Code. I am getting this message: "Initializing the Flutter SDK. This may take a few minutes." It's been 40 minutes but still I am getting the same message.
I have tried closing and opening VS Code, waiting for sometime for it to respond, but it is still not working. What can I try next?
Here are some of the solutions I have:
Temporary files or corrupted cache can cause unexpected issues. Follow these steps:
Win + R
to open the Run dialog.temp
and press Enter → delete all files in this folder (skip any in-use files).%temp%
to clear user-specific temporary files.Ensure Flutter’s bin
directory is correctly added to your system PATH
:
Path
→ Click Edit.C:\flutter\bin
(or your Flutter SDK path) is listed.
PATH
.Ensure VS Code uses the same Flutter SDK as your system PATH
:
Ctrl + ,
).Flutter: Sdk Path
in the settings.bin
directory (e.g., C:\flutter\bin
).Additional Notes:
flutter doctor -v
in the terminal to diagnose further issues.\flutter\bin
, not /flutter/bin
).If the problem persists, share the output of flutter doctor
for deeper troubleshooting and upvote if this was helpful.