Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Many "Emulator unknown emulator - xxxx [null]"s are redundantly shown in android studio

this is more of a benign bug in android studio. Whenever I wake my computer from sleep or hibernate the connection between the emulator and android studio is not proper and I have to restart the emulator and try again, so as a result of that (I think) all the dead emulators are always shown in the listing when trying to run the app.

And FYI I don't usually restart/shutdown my computer (once in 10 days or so). I was just wondering if there was a way to fix this bug without having to restart the computer.

Dead Emulators

Screenshot of problem

Thanks in advance!

like image 744
Shruti Saagar Avatar asked Nov 08 '22 21:11

Shruti Saagar


1 Answers

I am having the same issue using Windows 10 hibernate.

Try terminating the adb.exe process in the task manager. Sometimes you will find two or more adb.exe processes, kill them all. Then close all running emulators (if any) and disconnect all physical devices.

You don't have to restart android studio or eclipse.

After dong this, all unknown/null emulators should be gone (at least in my case).

like image 178
Jiaqi Liu Avatar answered Nov 14 '22 23:11

Jiaqi Liu