Question

Visual Studio not installed; this is necessary for Windows development

My Flutter Doctor is saying:

Visual Studio - develop for Windows

X Visual Studio not installed; this is necessary for Windows development.
  Download at https://visualstudio.microsoft.com/downloads/.
  Please install the "Desktop development with C++" workload, including all 
  of its default components.

Flutter doctor

How can I fix this problem?

 48  168724  48
1 Jan 1970

Solution

 58

It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++

Also, you have to install the third link in this: Visual-studio

You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and featuresDesktop development with C++.

Enter image description here

2022-02-11

Solution

 58

It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++

Also, you have to install the third link in this: Visual-studio

You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and featuresDesktop development with C++.

Enter image description here

2022-02-11

Solution

 51

Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.

If you only want to develop mobile apps using Flutter, you can run

flutter config --no-enable-windows-desktop

to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.

Read more at: https://fig.io/manual/flutter/config

2023-02-05

Solution

 51

Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.

If you only want to develop mobile apps using Flutter, you can run

flutter config --no-enable-windows-desktop

to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.

Read more at: https://fig.io/manual/flutter/config

2023-02-05