New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio is missing necessary components. #44184
Comments
Running the x64 Native Tools Command Prompt for VS 2019 cmd prompt makes the various MSVC tools available on the command line, e.g. msbuild, but does not appease |
Your screenshot shows the required SDK version as unselected, so you are missing one of the required components listed by |
Apparently in VS 2019 it's now possible to just set the version to "10.0" instead of an exact version, which wasn't possible when I was initially researching this. We may want to require 2019 so that we can switch to that, since this has been, and will continue to be, a pain point. |
how do I fix the issue? |
You need to install the component called "Windows 10 SDK (10.0.17763.0)" |
Unfortunately there doesn't appear to be a generic component ID for "latest SDK" so even if we set it to 10.0 and required VS 2019 doing the |
The line about installing the latest goes with the build tools, not the SDK. That's supposed to be clear from formatting but the indentation looks like it's messed up. We should fix the indentation, and explicitly mention build tools again in that line so that confusion can't happen regardless of indentation. |
Closing since the text was improved to help avoid this confusion. #50487 tracks trying to eliminate the need for a specific SDK version entirely which would avoid this common problem. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter doctor
and get the following Visual Studio-related error message:Logs
The text was updated successfully, but these errors were encountered: