How to debug in Android Studio using adb over WiFi

后端 未结 15 2007
有刺的猬
有刺的猬 2020-12-04 06:32

I\'m able to connect to my phone using adb connect, and I can adb shell also.

But when I go to Run->Device Chooser, there are no devices there.

What should I

15条回答
  •  [愿得一人]
    2020-12-04 06:58

    All of the answers so far, is missing one VERY important step, otherwise you will get "connection refused" when trying to connect.

    Step 1: First enable Developer Options menu on your device, by navigating to the About menu on your device, then tapping the Build menu 5 times.

    Step 2: Then go to the now visible Developer Options menu and enable USB debugging. Yes its a bit odd that you need this for Wifi debuging, but trust me, this is required.

    Step 3:

    adb connect [your devices ip address]

    It should say that you're now connected

提交回复
热议问题