Upgrading Flutter — Visual Studio not installed!!
--
Did you recently upgrade to Flutter 3.0 and get the following problem when running flutter doctor
?
[X] Visual Studio develop for Windows
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.
To upgrade Flutter to the latest version on the stable branch, open the command prompt and run flutter upgrade
.
Do not worry as this is a warning and not an error but still we are going to solve it.
If you go to the provided link and download the Visual Studio 2022 Community version from the home page, the problem will stay because it says specifically which workload to download. Figure 2 shows the problem that may arise when the wrong workload is downloaded.
Please download the correct version from this link.
Visual Studio setup for desktop development with C++
After downloading the installer, it will download the required workload. You just have to click on “Install” when the dialog box comes up. The setup will take some time based on your machine.
After the setup is completed, run flutter doctor
again so make sure your Flutter setup is ready for development for everything.
You may check your flutter version by running flutter --version
on your command prompt.
Thank you for reading. Please support by leaving claps and sharing with your network.
Your support is appreciated!
Happy coding!