i was keep encountering this exception while pushing the code to android emulator:
similar to this
https://github.com/react-community/create-react-native-app/issues/144
turned out the solution was due to the firewall. after having added all android apps (android studio, emulator.exe, abd, avd etc) on the exception list of the firewall, the issue was sorted out.