I am trying to connect expo with my phone via USB debugging (enabled), but here is the error, i have tried everything , no any progress, please help!!!
After I run expo start and click on Run on Android device/emulator I get this error:
Couldn't start project on Android: could not connect to TCP port 5562: Connection refused
adb devices gives me:
List of devices attached
emulator-5554 device
emulator-5562 offline
running telnet 127.0.0.1 5562 returns:
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
I have tried restarting the adb server, and also turning off my firewall, but I get the same result. Wondering if it has to do with emulator-5562 showing as offline. I have tried removing all virtual devices from AVD Manager and re-adding, and have noticed that that emulator-5562 still persisted through the purge.
I also tried deleting .expo and running expo start -c, but same result.
Any ideas on what’s going on and how to address this?
I’m running:
Expo CLI 3.28.5
Android Studio 4.1.1
macOS 10.15.7
Android Emulator: Pixel 4 API 30
in your terminal press shift+a and try selecting the other emulator. also, you can try rebooting oyur computer as maybe one of the emulators is in a bad state. also possibly related Prevent Android emulator from starting? - Stack Overflow