Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Metro Bundler local host:8081 not connecting to Android Emulator

I have downloaded zip fil from github, did npm install, and run react-native start android.

I receiver the following:

Now when i open the browser it say

enter image description here

My android emulator is opened but not connected. No error messages. enter image description here

Any help how to run the project. The project is in github: https://github.com/itzpradip/react-navigation-v5-mix.

Thanks sal

like image 318
sal abb Avatar asked Oct 27 '25 10:10

sal abb


1 Answers

I had the very same issue. Adding this to the android manifest did the trick:

<application
...
android:usesCleartextTraffic="true">
...
</application>

references:

  • https://github.com/facebook/react-native/issues/15388
  • Android 8: Cleartext HTTP traffic not permitted
like image 109
Eduardo Lima Avatar answered Oct 29 '25 00:10

Eduardo Lima



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!