0

When I execute the command flutter run -d linux to run my flutter app on my Linux computer I get the following error

No devices found with name or id matching 'linux'

Guy Luz
  • 3,372
  • 20
  • 43

1 Answers1

0

You probably forgot to add support for your platform as stated in Desktop support for Flutter.

In case you are getting one of the following errors here are the fixes.

For Linux:

Error

No devices found with name or id matching 'linux'

Fix

flutter config --enable-linux-desktop

For Windows:

Error

No devices found with name or id matching 'windows'

Fix

flutter config --enable-windows-desktop

For MacOS:

Error

No devices found with name or id matching 'macos'

Fix

flutter config --enable-macos-desktop
Guy Luz
  • 3,372
  • 20
  • 43