How to debug in Android Studio using adb over WiFi

后端 未结 15 2015
有刺的猬
有刺的猬 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 07:19

    You can find the adb tool in /platform-tools/

    cd Library/Android/sdk/platform-tools/
    

    You can check your devices using:

    ./adb devices
    

    My result:

    List of devices attached
    XXXXXXXXX   device
    

    Set a TCP port:

    ./adb shell setprop service.adb.tcp.port 4444
    
    ./adb tcpip 4444
    

    Result message:

    restarting in TCP mode port: 4444
    

    To init a wifi connection you have to check your device IP and execute:

    ./adb connect 192.168.0.155:4444
    

    Good luck!

提交回复
热议问题