Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "com.android.ddmlib.AdbCommandRejectedException: closed" Exception?

When I run application it show me "com.android.ddmlib.AdbCommandRejectedException: closed" Exception.

Any body have any idea why this is occurring and how can I resolve it.

like image 248
CoDe Avatar asked Aug 18 '11 23:08

CoDe


3 Answers

Just reset the adb(In ur eclipse go to DDMS perspective. In devices tab click on the down arrow-> reset adb).enter image description here

like image 198
Shivanand Darur Avatar answered Oct 21 '22 13:10

Shivanand Darur


Your adb server might have died. Try restarting it:

adb kill-server
adb start-server
like image 36
Nikolay Elenkov Avatar answered Oct 21 '22 15:10

Nikolay Elenkov


I ran into this same problem and tried a variety of things. Not sure exactly which one solved it.

I tried "adb kill-server and adb start-server" and that did nothing. I was able to adb shell into my device and use logcat from terminal, but Eclipse would still not work.

Tried restarting just Eclipse and that did nothing.

Rebooted computer and rebooted phone. Went into Settings->Applications->Development and Turned Debugging off and then back on. Then it showed up correctly in Eclipse and I can see the logcat.

like image 30
stipe108 Avatar answered Oct 21 '22 13:10

stipe108