1 分钟通过WiFi调试 Android App

2020-05-13  本文已影响0人  __无语__

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!

上一篇下一篇

猜你喜欢

热点阅读