abdulrahim almethiab
abdulrahim almethiab

Reputation: 61

Device emulator-5554 disconnected (with no Emulators on Android Studio)

I get an error while trying to run any app on a physical device.

Device emulator-5554disconnected, monitoring stopped. Error while Installing APK

It works after trying at least 3 times, but sometimes it gets frustrating.

I tried to delete all the emulators and reinstall Android Studio but it didn't help. and the set deployment target is always flashing like so:

flashing emulator error

Upvotes: 1

Views: 2937

Answers (3)

Tspoon
Tspoon

Reputation: 3800

In my case it looks like Docker interferes with adb.

I tried restarting Android Studio, adb kill-server && adb start-server, and anything else I could think of.

Then I tried killing all docker containers and quitting the docker app, and everything works nicely again! Edit: Killing the containers is enough

I'm wondering if this is a newly introduced issue in Android Studio/adb/Docker - I updated to AS 3.4 recently, and I don't remember having this problem in the past, but it could have just been a coincidence.

Upvotes: 2

abdulrahim almethiab
abdulrahim almethiab

Reputation: 61

I tried the suggestion but it didn't work, after a few days of work on it, I found out that a vpn software (SoftEther) that I had installed was causing the problem, uninstalling it solved everything. it seems adb was interfering with a network bridge the software was trying to create.

Upvotes: 1

Sharath kumar
Sharath kumar

Reputation: 4132

Try restarting the adb. Use the following command to restart adb

adb -d kill-server && adb -d start-server 

Use command -d for real device and command -e for emulator in case both are connected

Also if that doesnot work clean the project and reset connected emulator. Run Emulator and wait for the home screen of the Emulator to load

Click Window > Open Perspective > DDMS
In Devices Panel, click on drop down menu > Reset adb
Run project

Upvotes: 0

Related Questions