如何在特定设备上运行命令'ionic run android'? [英] How to run command 'ionic run android' on specific device?
本文介绍了如何在特定设备上运行命令'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
这篇关于如何在特定设备上运行命令'ionic run android'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文