使用数据线连接手机和电脑,
查看设备
PS C:Usersan> adb devices
List of devices attached
b30c960e device
PS C:Usersan> adb tcpip 5555
restarting in TCP mode port: 5555
拔掉数据线,连接设备,须在同一局域网内,IP是手机的ip
PS C:Usersan> adb connect 10.168.1.218:5555
connected to 10.168.1.218:5555
PS C:Usersan> adb devices List of devices attached 10.168.1.218:5555 device
若出现Offline, 执行adb kill-server、adb start-server 重复上述步骤
PS C:Usersan> adb devices List of devices attached 10.168.1.218:5555 offline PS C:Usersan> adb kill-server PS C:Usersan> adb start-server