Nikita Sarode
Nikita Sarode

Reputation: 3

Unable to build in Android in vscode

Checking build Searching for devices... Launch failed: ADBSocket Socket connect failed. connect ECONNREFUSED 127.0.0.1:5037. Ensure any instances of Android Studio are closed.

I uninstalled Android studio. Even I checked and port 5037 is free.

Upvotes: 0

Views: 1419

Answers (1)

Edchel Stephen Nini
Edchel Stephen Nini

Reputation: 64

I have the same error. I fixed the issue with the following:

  1. On terminal: Run command adb devices

*It showed output like this:

  • daemon not running. starting it now on port 5037 *
  • daemon started successfully
  • List of devices attached 9e0a8524 unauthorized [1]: https://i.sstatic.net/MXtY7.png
  1. Checking adb devices launched a pop up screen on my mobile to allow access. I clicked Allow(Ok) and that's it!

Hope it helps!

Upvotes: 1

Related Questions