Failed to parse the output of 'adb version'

2020-01-31 23:58发布

I am running Windos 7 and Eclipse 3.5 and I don't know why I keep getting this error. When I try run the program it gives me:

[2010-02-13 23:09:41 - HelloAndroid]The connection to adb is down, and a severe error has occured.
[2010-02-13 23:09:41 - HelloAndroid]You must restart adb and Eclipse.
[2010-02-13 23:09:41 - HelloAndroid]Please ensure that adb is correctly located at 'C:\Users\Mohit\Documents\AndroidSDK\tools\adb.exe' and can be executed.

I even tried runing Eclipse and adb.exe as admin. What is going on? How can I fix this and start making Android apps?

9条回答
贪生不怕死
2楼-- · 2020-02-01 00:13

turned off COMODO Defense+ module and all worked....

查看更多
SAY GOODBYE
3楼-- · 2020-02-01 00:15

If you have comodo internet security installed, you dont have to shut this feature down:

  1. run comodo settings
  2. defense+
  3. list active processes
  4. add adb.exe to trusted processes
  5. restart server: run "adb kill-server" "adb start-server"

EDIT: For user of Comodo 6.x

  1. Open Comodo
  2. Click Tasks Icon at right top
  3. Click Advanced Tasks
  4. Click Open Advanced Settings
  5. Select Security Settings --> File Rating --> Trusted files from left panel
  6. Click on the upward arrow icon at the bottom
  7. Click Add --> add the adb.exe

there you go :) Hope this helps

查看更多
萌系小妹纸
4楼-- · 2020-02-01 00:29

As illustrated by this thread, you may need to kill an exisiting abd process, or unblock the 5037 port (remnants of previous adb start attempts).

Try closing Eclipse, issuing a 'C:\Users\Mohit\Documents\AndroidSDK\tools kill-server' command from terminal and retrying.
If that still doesn't work, you could try opening Activity Monitor to see if there are any existing adb processes running, and kill them.

Hi, it's OK now, I'saw with the nestat - a command line that theer was several processus on the 5037 port. The port wich serves for the emulator.
Thanks

查看更多
登录 后发表回答