The application compiles without errors and the Android emulator is running properly.
However, when I run
react-native run-android, I get the following error:
After clicking reload I get another error message:
Please note that the Metro Bundler is in fact running on port 8081. (Opening
http://127.0.0.1:8081/ with a browser (or curl) gives me: React Native packager is running.)
I also tried the following without success (same error):
- cleared all node_modules and all Android build files and started over
- started metro server manually with
npm start -- --reset-cache
However, I have no idea where this
10.0.2.2 ip address is coming from. (It’s not my local network, nor is the service running on that ip. It’s running on localhost.)
I’d appreciate any help.