Eclipse has multiple copies of same Android Device

2019-04-06 09:15发布

问题:

I've been programming for Android devices for some time now and just recently came across this:

There is a single one in the list online, but I can't run/debug my programs because it reports "ADB rejected install command with: device offline" since every other device has the same ID.

A reset fixes this, but is there any other options? Why is this happening?

回答1:

Exit eclipse, kill adb and restart eclipse



回答2:

I find that the issue is often with a bad cable or connection. Try and insert it into another USB slot or try with a different cable, worked for me.



回答3:

I had to remind myself how to call the commands, so I thought I'd write an answer for other people that don't remember how.

  1. Find the location of adb.exe.
  2. Open up command prompt.
  3. In command line, change the directory to the directory from step 1.
    • For me, the command and directory is: cd C:\ADT\sdk\platform-tools
  4. Run: adb kill-server from the command prompt
  5. Run: adb start-server from the command prompt

Credits to Squeazer for the commands.