美文网首页
1 分钟通过WiFi调试 Android App

1 分钟通过WiFi调试 Android App

作者: __无语__ | 来源:发表于2020-05-13 15:47 被阅读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!

相关文章

网友评论

      本文标题:1 分钟通过WiFi调试 Android App

      本文链接:https://www.haomeiwen.com/subject/sygnnhtx.html