Device not applicable for the "main.dart" configuration ,

It solved my problem:

  1. Make sure Flutter plugin is installed in android studio, you can install the plugin from file > setting > plugin
  2. choose flutter SDK path from File > setting> Language & Framework > flutter.

For my case the flutter sdk path was D:/flutter

I've had the same issue and what worked for me is to re-import the project.

File > Close Project, go to the project's directory and delete the .idea folder. Then File > Open... and re-open the project.

Open Project Structure, you can set the project's SDK with what you have. enter image description here

After this, I was able to run main.dart with the emulator. enter image description here