Device not applicable for the "main.dart" configuration ,
It solved my problem:
- Make sure Flutter plugin is installed in android studio, you can install the plugin from file > setting > plugin
- choose flutter SDK path from File > setting> Language & Framework > 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.
After this, I was able to run main.dart
with the emulator.