skip to Main Content

My Metro bundler is not getting connected to the android emulator

Please help

When i run the command to build react native app , it does not automatically start my android emulator , nor does it recognises it

2

Answers


  1. good day. you have to follow all the steps in the react native official documentation to make it run.
    https://reactnative.dev/docs/environment-setup

    Login or Signup to reply.
  2. I tried those solutions plus others I found on-line to no avail.

    I discovered that my old app was installed in my android emulator. This fixed it for me:

    1. I uninstalled both the app and the new app from the emulator.
    2. I killed both Metro and the emulator.
    3. I restarted both Metro and the emulator.

    It turns out the emulator retains each app it installs instead of starting out as a blank slate each time as I expected. When it starts up, it tries to load the app with the earliest install time. So, it kept trying to run my old app and contact the old Metro server instead of running my new app.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search