Thursday, June 10, 2010

How to deal with an Android emulator not seen by DDMS or ADB

Sometimes DDMS will not detect that I have the android emulator running. I have found that to solve this problem, I need to restart the emulator with "-wipe-data" parameter. This launches the emulated device with default settings.

"adb -devices" was also failing to show the emulated device.

When you do not specify '-wipe-data', the state of the emulated device is the same as it was last time the emulator was running.

2 comments:

Manfred Moser said...

Sometimes you can just restart the server with adb kill-server and adb start-server and things are fine again.

Joe Ferrara said...

Thanks for the tip. I've successfully done this.