Android Emulator starts but Eclipse doesn't recognize it

Kenny Wyland picture Kenny Wyland · Apr 3, 2011 · Viewed 12k times · Source

As a general rule, everything works fine, but then sometimes either Eclipse or my Android emulator decides to be a jerk and refuses to work.

I open the AVD Manager in Eclipse. I choose which AVD I want and click Start. The emulator starts up and it goes through the loooong process of booting. It finally finishes booting and then for some reason, it immediately reboots and goes through the looong process of booting again. Once it boots the second time, Eclipse loses track of it. It is no longer lists in the Devices tab and I can't install my app or run it on that emulator. If I kill the emulator and try to start it over, then I get the exact same behavior. It's incredibly frustrating.

There are no messages happening in the console to explain the behavior. Any idea why this is happening?

Answer

Aleadam picture Aleadam · Apr 3, 2011

That's a known issue when adb starts before the emulator. I don't know the real reason, but a quick workaround is to restart adb in the command prompt (with the emulator running)

> adb kill-server
> adb start-server

Now,

> adb devices

will return the emulator and Eclipse will be able to install the app.