19

I've tried to change the build of an application, and now eclipse doesn't work.

There is nothing in the console, and when I launch the debug, there is nothing on the log.

I just got this message :

[2011-03-31 11:22:58 - Logcat]device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
    at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
    at com.android.ddmlib.Device.executeShellCommand(Device.java:284)
    at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)
0

8 Answers 8

40

Try adb kill-server and adb start-server to restart the adb. It can be found in your android sdk directory, subfolder plattform-tools.

6
  • 3
    Also you can kill the adb.exe process from the Task Manager.
    – Laksh
    Jun 14, 2013 at 11:19
  • Which works only on windows :-) (of course you can adapt it to other OSs) Jun 14, 2013 at 11:53
  • for the newer api the adb moved to the platform-tools folder under the sdk folder.
    – Hadi
    Jul 30, 2014 at 5:31
  • 1
    Make sure the adb process is running with sufficient privileges (i.e. super user) Jun 15, 2015 at 23:37
  • this process does not work always.Restarting device help me after this process
    – Rasel
    Sep 15, 2015 at 7:45
3

Restart the eclipse once...and try again

...

0
3

on-off your USB debugging on mobile phone or your AVD maybe help you solve this problem. This method is work for me :)

1

I encountered a similar issue on Linux. It turned out that my adb server was running under my user account, so running the following fixed the issue:

sudo adb kill-server
sudo adb start-server
1

I also faced same problem. Go to developers Option and then Revoke USB debugging authorization.

2
  • This can be added as comment, once you have enough reputation
    – piyushj
    Oct 18, 2016 at 5:48
  • Yes I have started answering on stackoverflow now only.
    – prashant
    Oct 20, 2016 at 18:06
0

Restart the eclipse and check if the error continues. Also check if you have correct version of AVD manager installed or not.

1
  • 1
    How do you check if the version of AVD manager is correct ? Which version should it be ? What are the steps to check that ? Thanks.
    – toto_tata
    Oct 27, 2011 at 16:43
0

If you are using the Emulator and restarting adb doesn't solve the problem then close the current running Android virtual device and Launch it again.

0

For some reason my device had gone offline, reconnecting the device resolved the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.