Android Adb error
Please guide me about this error
2011-05-02 18:37:20 - SimpleOptionMenu] The connection to adb is down, and a severe error has occured.
[2011-05-02 18:37:20 - SimpleOptionMenu] You must restart adb and Eclipse.
[2011-05-02 18:37:20 - SimpleOptionMenu] Please ensure that adb is correctly located at 'F:\android-sdk-windows\platform-tools\adb.ex开发者_如何学Ce' and can be executed.
It was working fine and now i am getting this error . I have restarted eclipse but nothing happed . Thanks
When I faced with this problem, resetting adb is usually the solution.
If this not solves, unplugging-replugging the device works. I never have had to restart Eclipse.
By the way, Reset adb option can be found in DDMS(Dalvik Debug Monitor Server)'s Devices tab.
I have had this error from time to time too, and restarting Eclipse has fixed it. My best guess is that you had the misfortune of getting the error twice in a row. Try restarting again and see if it goes away.
Writing this post has had the unfortunate effect of making me realize that the Android SDK bears a striking resemblance to Windows.
I do not know the reason but restating up my system worked for me :) !!!
I just posted the response below here: adb kill-server not responding?. I am duplicating it here too as Google considers this thread as one of the top hits.
If zombie adb
process is not the issue i.e. there's no adb.exe
in the task-manager list, the problem is usually adb
ports e.g. 5555, 5554, 5037 etc., being taken by other applications.
Solutions:
On all Windows
: find the process taking one of those ports usingnetstat -bn
and kill it from task-managerCtrl+Shift+Esc
is the shortcut.On Windows 7 and 8
: there's this new tool calledResource Monitor
. It'll also allow you to find out the blocked port and blocking process under the network tab.On Linux
: the similar is done withnetstat -pn
. Feel free to use yourgrep
foo as needed and kill the blocking process withkill
orpkill
.Change Default ADB Port
: Apparently default ADB port can be changed as described here by setting up an environmental variable before launching ADB. Give it shot. It'll allow more flexibility if you don't want to kill the blocking processes.
精彩评论