Flutter run app on real device

Enable Developer option

Go to settings -> Tap around 7 times on the version to enable the developer option.

Enable USB Debugging & USB Installation

Search USB in settings page of your mobile and enable both USB debugging & usb installation options.

Run “flutter devices” and check your device

flutter devices

Make sure you have connected your mobile with your laptop and you should be able to see your device after running flutter devices command.

Run flutter run -d all to run on all the connected devices

In our case as per the above screenshot this runs on both emulator and the connected real mobile device.

flutter run -d all

Note

To run the app on the specifc device, run the command with the device id,

flutter run -d "M2010J19CI"

Leave a Reply