如何在特定设备上运行命令'ionic run android'?

如何在特定设备上运行命令'ionic run android'?

问题描述:

我在adb中检测到2个设备。一个来自我的genymotion,另一个来自我的真实设备:

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

我想运行我的离子应用在 e78ab88d设备。我怎样才能做到这一点?
如果我运行离子运行android ,它会自动在我的genymotion设备上运行。它说,没有指定目标。
img没有指定目标

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?

使用目标设备ID运行,如:

run with target device id, something like :

ionic run android --target=e78ab88d

编辑

使用新的Ionic 3 CLI:

With new Ionic 3 CLI use :

ionic cordova run android --target=e78ab88d

所有可用设备的列表,使用:

For list of all available devices, use :

ionic cordova run android --list