Error “AdbCommandRejectedException: device not found” in Eclipse using Android emulator

痞子三分冷 提交于 2019-12-18 03:05:18

问题


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)

回答1:


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




回答2:


Restart the eclipse once...and try again

...




回答3:


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




回答4:


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



回答5:


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




回答6:


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




回答7:


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.




回答8:


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



来源:https://stackoverflow.com/questions/5497785/error-adbcommandrejectedexception-device-not-found-in-eclipse-using-android-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!