Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run command 'ionic run android' on specific device?

Tags:

android

ionic

I have 2 devices detected in adb. One from my genymotion, and the other from my real device :

$ adb devices List of devices attached 192.168.57.101:5555 device e78ab88d    device 

I want to run my ionic app on e78ab88d device. How can i achieve this? If i run ionic run android, its automatically run on my genymotion device. It says, no target specified. img no target specified

What command to run on specific device?

like image 289
dehamzah Avatar asked Dec 04 '15 01:12

dehamzah


People also ask

How do I run an ionic project on a device?

To run your app, all you have to do is enable USB debugging and Developer Mode on your Android device, then run ionic cordova run android --device from the command line. Enabling USB debugging and Developer Mode can vary between devices, but is easy to look up with a Google search.


1 Answers

run with target device id, something like :

ionic run android --target=e78ab88d 

EDIT

With new Ionic 3 CLI use :

ionic cordova run android --target=e78ab88d 

For list of all available devices, use :

ionic cordova run android --list 
like image 137
Randyka Yudhistira Avatar answered Sep 24 '22 13:09

Randyka Yudhistira