skip to Main Content

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

3

Answers


  1. Chosen as BEST ANSWER

    I have found the solution to the problem. I just deleted the C:Users<Username>AppDataRoamingCodeUser 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


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

    Login or Signup to reply.
  3. 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"
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search