Run/install/debug Android applications over Wi-Fi?

前端 未结 30 2281
[愿得一人]
[愿得一人] 2020-11-22 07:16

I thought there was a way to test your applications in development over Wi-Fi. Is this possible?

I\'d love to be able to untether my phone and develop wirelessly.

30条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 08:02

    To complete the answer of @usethe4ce, if you have more than one device or emulators, the adb tcpip 5555 will give error: more than one device/emulator.

    In this case you need to give the serial number of the desired device:

    1. adb devices

      List of devices attached

      33001229 device

      emulator-5554 device

    2. adb -s 33001229 tcpip 5555
    3. Find your device's IP in my case I can find it from the device's wifi connected settings.
    4. adb connect xxx.xxx.xxx.xxx:5555

提交回复
热议问题