React-Native run-android on specific device

后端 未结 5 440
时光说笑
时光说笑 2021-02-01 14:13

Is it possible to use the run-android command for one specific device only?

For example, if I have three devices (or emulators) connected and I want to use

5条回答
  •  佛祖请我去吃肉
    2021-02-01 14:56

    To run react-native application on optional device you can specify some flags in run command. To see available add --help:

    react-native run-android --help

    Then you can specify your device id throught --deviceId

    react-native run-android --deviceId=DEVICE_ID

    To see available devices ids'

    adb devices

提交回复
热议问题