Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error "AdbCommandRejectedException: device not found" in Eclipse using Android emulator

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)
like image 850
Tsunaze Avatar asked Mar 31 '11 09:03

Tsunaze


5 Answers

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

like image 166
WarrenFaith Avatar answered Oct 19 '22 15:10

WarrenFaith


Restart the eclipse once...and try again

...

like image 35
Udaykiran Avatar answered Oct 19 '22 14:10

Udaykiran


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

like image 3
BoBo Avatar answered Oct 19 '22 13:10

BoBo


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
like image 1
Aaron Blenkush Avatar answered Oct 19 '22 15:10

Aaron Blenkush


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

like image 1
prashant Avatar answered Oct 19 '22 13:10

prashant