I am using mac and Expo 4.4.4.
When I am trying to run Expo on Android Emulator Getting below error :
Couldn't start project on Android: could not connect to TCP port 5554: Connection refused
I tried the below cmds in the terminal to get rid of offline device
$ 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
What ever I try, I am not able to rid of offline device.
Is there any way to remove this ? or start expo on TCP 5556 ?