adb -s 192.168.1.6:5555 … error: more than one device/emulator

后端 未结 3 760
野的像风
野的像风 2021-02-07 20:48

I am working with react native, and would like to switch adb to wifi for easier debugging.

I connect my device using usb, then type these commands.

adb t         


        
3条回答
  •  星月不相逢
    2021-02-07 21:24

    When I am facing the same issues than doing like below:

    1) kill your process of 8081 port for using this command : kill -9 $(lsof -t -i:8081)

    2) Reset your adb connection with : adb usb if you want to run via wifi then connect your device again : adb tcpip 5555

    3) Start your npm : npm start

    4) Then after you can run your react native app : react-native run-android

    and it's works fine for me.

提交回复
热议问题