Reputation: 73
I installed the flutter and dart plugins on Android Studio, already installed SDK and AVD for the Android emulator. But the program still runs on chrome
Upvotes: 7
Views: 13852
Reputation: 4387
To see available emulators run this command:
flutter emulators
Then copy the name of emulator from there and enter this command:
flutter emulators --launch EmulatorNameHere
Now when the emulator ready and running:
flutter run
Upvotes: 7
Reputation: 4809
If you are using VS Code, you can select the target device by using the status bar changer:
That will open up the list of connected devices in the command palette you can pick from.
Upvotes: 7
Reputation: 503
Launch your Android emulator, run flutter devices
to get the id of the emulator device. Then, you can run flutter run -d [emulator_id]
to launch the Flutter application on the targeted device.
Upvotes: 3