1 分钟通过WiFi调试 Android App
2020-05-13 本文已影响0人
__无语__
https://stackoverflow.com/a/33881295/853191
打开命令行:
cd ~/Library/Android/sdk/platform-tools/
./adb devices
My result:
List of devices attached
XXXXXXXXX device
-
设置端口:
./adb shell setprop service.adb.tcp.port 4444
./adb tcpip 4444
Result message:
restarting in TCP mode port: 4444 -
从手机上得到 IP 地址,比如我的是
192.168.0.155
, 执行连接:
./adb connect 192.168.0.155:4444
Good luck!