1 分钟通过WiFi调试 Android App

https://stackoverflow.com/a/33881295/853191

打开命令行:

  1. cd ~/Library/Android/sdk/platform-tools/
  2. ./adb devices

My result:
List of devices attached
XXXXXXXXX device

  1. 设置端口:
    ./adb shell setprop service.adb.tcp.port 4444
    ./adb tcpip 4444

    Result message:
    restarting in TCP mode port: 4444

  2. 从手机上得到 IP 地址,比如我的是 192.168.0.155, 执行连接:
    ./adb connect 192.168.0.155:4444

Good luck!

你可能感兴趣的:(1 分钟通过WiFi调试 Android App)