AS1.Android studio 的 adb wifi 调试
1. 配置系统环境变量C:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools
2. 手机与电脑同局域网,查看手机IP地址(设置-关于手机-状态)
3. adb-wifi连接步骤(连接前先卸载360手机助手等软件,手机usb连电脑,运行cmd或者powershell)
1)adb shell
2)setprop service.adb.tcp.port 5555
3)exit
4)adb tcpip 5555
5)adb connect 192.168.1.100(自己的手机IP地址,然后断开usb线即可)
在Powershell中的命令运行情况 PS C:\Users\Administrator\Desktop> adb shell c7ltechn:/ $ setprop service.adb.tcp.port 5555 c7ltechn:/ $ exit PS C:\Users\Administrator\Desktop> adb tcpip 5555 PS C:\Users\Administrator\Desktop> adb connect 192.168.1.100 connected to 192.168.1.100:5555 PS C:\Users\Administrator\Desktop>
4. 打开AS(Android studio)
1)Terminal中运行adb connect 192.168.1.100命令
2)点击绿色播放按键(run"app")就可以看到自己的wifi链接的手机了
以后进行真机调试只需再次adb connect 手机ip(wifi断开后重连也要执行此操作),可以扔掉usb线了,此方法不用安装Android wifi adb等插件。