9

I am facing a strange problem. The eclipse is deteting the same device multiple times and thus is unable to run the project showing error as :

Failed to install MetRoute.apk on device 'EC21BF384504FC4E': adb rejected install command with: more than one device
com.android.ddmlib.AdbCommandRejectedException: more than one device
Launch canceled!

See This image:

enter image description here

I tried to take help of this question but no help after following the process. Does anyone have any other solution.?

Community
  • 1
  • 1
Aishvarya Jaiswal
  • 1,793
  • 6
  • 34
  • 72
  • If you close Eclipse and run adb devices in command line, does it display multiple devices? Also, in command line, have you tried: adb kill-server then adb start-server then adb usb and start Eclipse again? – Melquiades Dec 19 '13 at 11:40
  • Close the `adb`. Close eclipse. Delete all the processes `adb` is running under task manager. Restart eclipse. Run `adb` again. – sjain Dec 19 '13 at 11:42
  • 2
    @Melq Yes I have tried all that. I saw that question to solve it, it tried and it didnt work. So I posted my ques. – Aishvarya Jaiswal Dec 19 '13 at 11:44
  • Possible duplicate of http://stackoverflow.com/questions/3352360/android-within-android-device-chooser-the-same-device-shows-up-several-times – sjain Dec 19 '13 at 11:48

4 Answers4

22

update : It is not needed to restart/close Eclipse

As told in comments by Ved Praksh, the solution is:

Exit Eclipse

End all adb processes from task manager as well.. Then:

In cmd, adb kill-server --> adb start-server --> adb devices

Then restart eclipse.

Most probably it will show only one device this time.

Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
Aishvarya Jaiswal
  • 1,793
  • 6
  • 34
  • 72
2

In windows start task manager >>> Processes Tab >>> Right click adb.exe*32 >>> End Process and Press End Process on the dialog box.

enter image description here

zizutg
  • 1,070
  • 14
  • 20
1

Try

./adb kill-server
./adb start-server
./adb devices (This should show your device exactly once)

and it should work.

And also restart Eclipse after this.

Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
0

Reset adb in eclipse,If the problem persists it may be caused due to some hardware related issues with the usb port or your cable. try using another cable/port/device and check whether the issue is solved.

nikvs
  • 1,090
  • 5
  • 9