Stuck On Info Starting Js Server
Solution 1:
Kill the automatically popped up metro bundler command prompt
Kill the command terminal which is running react-native run-android
Now Run react-native start
This will start your js server
In new command prompt window run react-native run-android
The app came up in 5 mins in an emulator.
Solution 2:
Linux:
Go to the terminal and type:
react-native start
and then in OTHER terminal, inside your project folder:
yarn android
or
npm run android
Solution 3:
Temporary fix:
REACT_TERMINAL= react-native run-android
in my case with manjaro + xfce4
:
REACT_TERMINAL=xfce4-terminal react-native run-android
or puts in your .bashrc
:
export REACT_TERMINAL=xfce4-terminal
Solution 4:
I had the same problem. I started a project yesterday and it worked, started a new one today and it didn't work. The problem seems to be "@react-native-community/cli-platform-android". The version that showed up today is 2.8.2 as opposed to 2.7.0 for yesterday's project.
I used:
npm install @react-native-community/cli-platform-android@2.7.0
This is not a optimal solution, but it will get you going.
Solution 5:
I had the exact same frustrating issue for a very different reason than mentioned in other answers.
As explained in this SO answer Android adb binds to port 5037 and I installed some program which took this port so adb was hanging silently (why adb! .. say something!)
Commands to test if this your issue cause:
test any adb command and see if it hangs, eg:
adb devices
If it does, then check who is using the port:
sudo lsof -i :5037
Post a Comment for "Stuck On Info Starting Js Server"