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?
Exit eclipse, kill adb and restart eclipse
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.
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.
- Find the location of
adb.exe
.
- Open up command prompt.
- 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
- Run:
adb kill-server
from the command prompt
- Run:
adb start-server
from the command prompt
Credits to Squeazer for the commands.