Hi Guys, Welcome to Proto Coders Point. In this article let’s fix an Exception : unable to find suitable visual studio toolchain. please run flutter doctor for more details.
Flutter Windows Build Error
You will face Unable to find suitable Visual Studio toolchain
error only when you try to run flutter app in windows Desktop. That’s because of 2 reasons.
- Visual Studio is Not Installed
- Desktop development with C++ ( Windows SDK ) workload, is not installed with Visual Studio.
Unable to find suitable visual studio toolchain
Please run flutter doctor
As you can see here, it’s saying you to install Visual Studio – developer from Windows (Visual Studio Build Tools 2017 15.8.42), Visual Studio 2019 or later is required.
Please install the “Desktop development with C++” workload.
Just install Visual Studio and don’t forget to select “Desktop Development with C++”
Desktop development with C++ is required to be install in visual studio, if you want to build Flutter Windows Apps.
Now Restart Android Studio or your IDE.
Then run flutter doctor
again in terminal
flutter doctor