ADB error: More than one device and emulator

When I started the adb program to connect to my android phone (a Nexus One), I got the following error:

Error: More than one device and emulator

The message says it all ... But I did not know how to stop the emulator (well, the "adb kill-server" command works, but the emulator starts again when I start ADB from the command prompt).

Finaly, the solution was fairly straightforward. Use the -s option with ADB to connect to the right device ..

You can find the device with the "adb devices" command.

Robert

 

TIP: I finally removed the 'ghost' emulator-5554 http://0bar.nl/en/tech/adb-device-emulator-5554-offline

 

 


 

Groups:

finally a solution!

Thanks.. I was really looking for this answer..

i dont understand how do i

i dont understand

how do i get it connected to the right device...please explain properly

First type: adb devices It

First type:
adb devices
It will give something like:
C:\AndroidSDK\android-sdk-windows\tools>adb devices
List of devices attached
HT9CVP829439    device

Now you know the id, so you can connect to the device with ADB like:
C:\AndroidSDK\android-sdk-windows\tools>adb -s HT9CVP829439 shell
#

But normally you would only have one device... But in my case I had somekind of Ghost device... I got rid off it by removing some software (see the text).
Hopes this helps.
Robert

thank's Robert, this help and

thank's Robert, this help and solved