Android Emulator Stuck at Loading from 10.0.2.2:8081 React Native Issue Fix

Last Updated on June 3, 2019.

We use Android emulators as well as real devices to run react native projects. If your PC has a good processor and enough RAM, running your react native project on Android emulator is simple.

I faced the react native android emulator error when I tried to run a react native project in Ubuntu. The emulator stuck at the green progress indicator showing Loading from 10.0.2.2:8081. There were no any signs to load the app.

This react native issue seems to be related with watchman. I ran the following commands in the terminal and the project ran smoothly.

   echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances
   echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events
   echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
   pkill node
   npm start
   react-native run-android

I hope the solution given above helps you to run react native project in your android emulator.

Leave a Reply

%d bloggers like this: