`
项目场景:因需要无线调试(adb)
adb 在已经连接上的情况下提示设备离线:
C:\Users\Administrator>adb tcpip 5555restarting in TCP mode port: 5555C:\Users\Administrator>adb connect 10.0.0.21already connected to 10.0.0.21:5555C:\Users\Administrator>adb shelladb.exe: device offline
1.这时可以先断开连接再连,可能就好了
C:\Users\Administrator>adb disconnect 10.0.0.21disconnected 10.0.0.21C:\Users\Administrator>adb connect 10.0.0.21connected to 10.0.0.21:5555C:\Users\Administrator>adb shell**2.**或者重新插入调试线(数据线),再次设置端口号adb tcpip 555,拔掉数据线 再连接无线调试:adb connect 10.0.0.21