Home > Software engineering >  Flutter SDK is not selected in Visual Studio Code
Flutter SDK is not selected in Visual Studio Code

Time:10-10

I am using Windows 10 and Visual Studio code for Flutter development. It was working fine till I upgraded the VS code to the latest version of Flutter. Now I am not able to do anything on VS code as the SDK selection for flutter always shows up and I am not able to select those enter image description here

I tried to uninstall and install VS Code as well as its extensions multiple times but no help. Another observation is that when I click Cntrl Shift P, I am now able to see SDK option which was coming previously. How can I select the Flutter SDK and avoid this issue PS :- I am able to run in Android Studio so no issue with the system only for the VSCode Flutter Extension

CodePudding user response:

I have found the solution to the problem. I just deleted the C:\Users\<Username>\AppData\Roaming\Code\User folder. It seems likesome kind of caching has happened which was causing this issue. Post this it started working fine. Thank you for all the people who has responded

CodePudding user response:

I think it's better to do this manually. I have solved this problem before as in the link

CodePudding user response:

You can create .vscode folder if you don't have that kind of folder in your workspace.

Then you can create settings.json file and overwrite those paths to your json file.

{
   "dart.flutterSdkPath": "your_flutter_path",
   "dart.sdkPath": "your_dart_path"
}
  • Related