【发布时间】:2021-05-08 09:24:39
【问题描述】:
我正在使用 mac 和 Expo 4.4.4。
当我尝试在 Android 模拟器上运行 Expo 时出现以下错误:
Couldn't start project on Android: could not connect to TCP port 5554: Connection refused
我在终端中尝试了以下 cmds 来摆脱离线设备
$ adb devices
List of devices attached
emulator-5554 offline
emulator-5556 device
$ adb kill-server
$ adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
$ adb devices
List of devices attached
emulator-5554 offline
emulator-5556 device
$ lsof -i :5555
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
adb 13691 sujayun 9u IPv4 0xd716e907b32c7e05 0t0 TCP localhost:54347->localhost:personal-agent (ESTABLISHED)
$ kill -9 13691
$ adb devices
List of devices attached
emulator-5554 offline
emulator-5556 device
无论我尝试什么,我都无法摆脱离线设备。
有什么办法可以去掉吗?还是在 TCP 5556 上开始博览会?
【问题讨论】:
标签: android react-native expo adb