skip to Main Content

I am using windows 10 and expo 46.0.9.
I was trying to have android emulator for expo app project. I installed Android studio and set the path in environment variables. When i run my app in VS code terminal using

npm run start 

and after metro bundling i pressed "a" for android. My AVD mobile appeared on screen but i got following error on the terminal.

Error: could not connect to TCP port 5554: cannot connect to 127.0.0.1:5554: No connection could be made because the target machine actively refused it. (10061)

I followed a youtube tutorial video. Youtube tutorial for emulator. I searched on google but could not find the solution for android studio for expo.

Current result
Error picture

Expected results
expected results

3

Answers


  1. Just code in the terminal

    npm i
    

    and wait for it to install all he required dependencies
    then restart the project using

    yarn start
    or
    expo start

    Login or Signup to reply.
  2. Just wipe the device data and remove node_modules package.

    Then

    npm install 
    
    npm start
    

    press A and wait it to install app.

    (I just try this successfully)

    Login or Signup to reply.
  3. I found this solution in another post, try this (it worked for me):

    I have just met this issue and noticed that it was happening due to the hanging ADB server. Mine has been solved by running the following commands:

    adb kill-server
    
    adb start-server
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search