Flutter not always running on Windows

Issue

I’m trying to run a flutter app on Windows for a new project, but I can’t find the option for it in the device selection menu in VS Code, nor is the Windows folder in the project. This happens occasionally with new projects and I don’t know what it is that changes. Can anyone lend me a hand?

Solution

In order to build or run for Windows, or for flutter create to create a windows folder, you need to meet the documented tooling requirements. Currently that means:

  • being on master
  • having run flutter config --enable-windows-desktop at some point

The device won’t show up in IDEs unless all those things are true and the project has a windows folder.

Answered By – smorgan

Answer Checked By – David Goodson (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.