Visual Studio not installed; this is necessary for Windows development

13,797

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++

enter image description here

Solution 2

As it states, download Visual Studio.

Remember to check the required package as:

This

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:

  1. MSVC v142 - VS 2022 C++ x64/86 build tools.
  2. Windows 10 SDK (For windows 10 users)
  3. C++ CMake tools for Windows.

In total, they should occupy around 8GB or so.

Share:
13,797

Related videos on Youtube

Ahmed Trabelsi
Author by

Ahmed Trabelsi

Updated on June 04, 2022

Comments

  • Ahmed Trabelsi
    Ahmed Trabelsi almost 2 years

    Flutter doctor

    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
      Dmitry Grebennikov about 2 years
      What's the question?
    • user2487501
      user2487501 about 2 years
      So do what it says?
    • Ahmed Trabelsi
      Ahmed Trabelsi about 2 years
      the vs code already installed that's why I'm confused
    • Dani3le_
      Dani3le_ about 2 years
      It's not VSCode. It's Visual Studio.
  • Stephen Murya
    Stephen Murya almost 2 years
    Is visual studio for windows necessary if I want to build or run my flutter app? It seems unnecessary for mobile development
  • Rohith Nambiar
    Rohith Nambiar almost 2 years
    Yes, for mobile app development its not necessary, but for windows app development its necessary