离线后如何处理呢?
来源:2-11 u2项目初始化

慕秀秀
2020-10-04
RuntimeError: USB device 127.0.0.1:21503 is offline
如果检测到离线重启模拟器是否可以实现呢?
写回答
2回答
-
大壮老师
2020-10-06
尝试重连
internal debugging: adb reconnect Kick current connection from host side and make it reconnect. adb reconnect device Kick current connection from device side and make it reconnect.
输入adb后可以查看adb命令帮助
00 -
大壮老师
2020-10-06
1、建议使用真实的移动设备
2、如果u2检测到模拟器离线,可以尝试先用adb devices查看模拟器是否在线,如果设备离线,可以尝试重启adb服务。
先关闭adb服务
adb kill-server - kill the server if it is running
然后启动adb 服务
adb start-server - ensure that there is a server running
012020-10-06
相似问题