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

前端 未结 30 1749
[愿得一人]
[愿得一人] 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 07:46

    Following steps are standard ones to follow( mostly same as previous answers):-

    • adb tcpip 5555.
    • adb connect your_device_ip_address.
    • adb devices (to see if devices got connected).

    But in some cases above steps gives error like "unable to connect to device. Make sure that your computer and your device are connected to the same WiFi network." And you notice the devices are already on the same network.

    In this case, install this plugin "Wifi ADB Ultimate" and follow below steps.

    1. Connect the device once through USB.
    2. Refresh the list to check whether its connected.
    3. Go to About Phone > Status > IP Address and note your IP address(e.g. 198.162.0.105).
    4. Come back to Android Studio and fill in this IP as done in below photo and hit the run button.


    Now, you are good to go!

提交回复
热议问题