Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to recognize JS server

I was trying to setup react native for android. When I finally try to run the application, with react-native run-android, I get a message JS server not recognized, continuing with build.... The build is completed successfully and installed on the emulator. But since there is no JS server, I get the red screen that says Unable to download JS bundle.

like image 252
Jophin Joseph Avatar asked Sep 16 '15 09:09

Jophin Joseph


1 Answers

This message means you have another service listening on port 8081, so the JS packager can't be started. You can find what process is blocking the port by running:

lsof -n -i4TCP:8081 | grep LISTEN

You can stop/kill this process and then run react-native run-android again.

like image 112
Felix Avatar answered Oct 27 '22 00:10

Felix