Visual Studio not installed and Install Desktop Development with C++ [duplicate] - flutter

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?

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 features → Desktop development with C++.

The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who 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 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.

As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.

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

Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.

My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.

With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.

Make sure to install Visual Studio Code.
Open the Visual Studio download page:

Related

! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio

I'm experiencing below error in my Wondows 10 PC during flutter installation.
I'm attaching pictures as well. I retried removal and reinstallation below versions as well as version 11 SDK.
Windows 10 SDK (10.0.20348.0)
Windows 10 SDK (10.0.19041.0)
Windows 10 SDK (10.0.18362.0)
ERROR
"! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio."
As I'm using office PC I can not reinstall windows in any way. Can anyone suggest me solution please?
I tried reinstallation as well as tried some forum solutions. Nothing worked for me!
I had the same issue and resolved it by installing Visual Studio Build Tools.
The Flutter documentation at https://docs.flutter.dev/get-started/install/windows#windows-setup advises to install either Visual Studio or Visual Studio Build Tools. Be sure to include the "Desktop development with C++" component when installing (you'll see it as an option during the installation process).

Issue found after running flutter doctor command: "Please install the "Desktop development with C++" Is it necessary to resolve this issue?

I am getting this issue when I run flutter doctor
Visual Studio - develop for Windows (Visual Studio Build Tools 2017 15.9.47)
X Visual Studio 2019 or later is required.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
Is it necessary for me to solve the above issue before I can run flutter on my android studio?
Is it necessary for me to solve the above issue before I can run flutter on my android studio?
No. This is only necessary to solve this issue if you want to develop Windows apps as it requires Visual Studio to be installed.
If you want to solve this issue. Download Visual Studio and when installing, under the "Workloads" tab, click on "Desktop development with C++".
This is not needed to run flutter on android studio. The only reason it's needed is for windows development with flutter, so if you're not going to take that path then there is no need to install VS Studio.

Flutter compile for windows need visual studio installed

when a run 'flutter doctor', the result is:
[X] 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
I need to install the Visual Studio on my windows. It must be easy if I have the root login on these windows (where i write right now), and I can ask by my superior to enable Visual Studio in this machine. But I don't want to install anything here.
What I really want to know is: There is a way to set up this dependency (Visual Studio) without any installation?
(just setting fome files and folders, like I do with flutter and dart)

found some error in setup flutter, how can i solve this?

I setup flutter for app development and vs code is already install in my device. still display this error, how can i solve this error?
[X] 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
[!] Android Studio (not installed)
[√] VS Code (version 1.67.0)
You're fine to build mobile apps, the error is just letting you know that your flutter is not yet configured for desktop app development on windows.
Development on windows needs you to install Visual Studio which is different from Visual Studio Code.
So you're fine.
If you want to stop the error just go ahead and download and setup Visual Studio for desktop app development.

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.
How can I fix this problem?
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 features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who 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 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
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
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page: