Flutter compile for windows need visual studio installed - flutter

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)

Related

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.

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

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:

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:

Visual Studio Code For Mac

I have enrolled new team which are using Visual Studio, but I have a MAC computer. I have a chance to get Windows computer also, but I am curious about something. Can I use Visual Studio Code instead of Win Visual Studio? Has it all properties of Win version?
No, it does not. Visual Studio Code for mac is mostly an editor, not a full fledged IDE as Visual Studio for Windows is. Check out the FAQ.
You can use Visual Studio Code on Windows, but is only a editor and not a IDE like Visual Studio, then maybe the best is if you need have windows install Visual Studio and also install ReSharper or another tools.
If you love Mac/linux and don't feel very comfortable with Windows, you can work with Visual Code with any problem or use Rider project
is a new IDE for C# for run net core app.