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
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
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.
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.
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