Visual Studio not installed; this is necessary for Windows development
Solution 1
It's basically saying that if you want to develop your flutter app 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 C++ tool after installing visual studio and then navigating to tool -> Get tools and features -> Desktop development with C++
Solution 2
As it states, download Visual Studio.
Remember to check the required package as:
Solution 3
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those that may be using a weak computer and can't afford to install the full Visual Studio, You only need to install a few components from Visual studio to get flutter to run on your computer without errors. These components are:
- MSVC v142 - VS 2022 C++ x64/86 build tools.
- Windows 10 SDK (For windows 10 users)
- C++ CMake tools for Windows.
In total, they should occupy around 8GB or so.
Related videos on Youtube
Ahmed Trabelsi
Updated on June 04, 2022Comments
-
Ahmed Trabelsi almost 2 years
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.
How can I fix this problem?
-
Dmitry Grebennikov about 2 yearsWhat's the question?
-
user2487501 about 2 yearsSo do what it says?
-
Ahmed Trabelsi about 2 yearsthe vs code already installed that's why I'm confused
-
Dani3le_ about 2 yearsIt's not VSCode. It's Visual Studio.
-
-
Stephen Murya almost 2 yearsIs visual studio for windows necessary if I want to build or run my flutter app? It seems unnecessary for mobile development
-
Rohith Nambiar almost 2 yearsYes, for mobile app development its not necessary, but for windows app development its necessary