Android 无法解析“adb version”的输出?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2260118/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Failed to parse the output of 'adb version'?
提问by Mohit Deshpande
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:
我正在运行 Windos 7 和 Eclipse 3.5,但我不知道为什么我不断收到此错误。当我尝试运行该程序时,它给了我:
[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?
我什至尝试以管理员身份运行 Eclipse 和 adb.exe。到底是怎么回事?我该如何解决这个问题并开始制作 Android 应用程序?
采纳答案by LTEHUB
Yes i had the same problem after i had did the update,
是的,我在更新后遇到了同样的问题,
however, i have just fixed it :) TO FIX THE PROMBLEM:
但是,我刚刚修复了它:) 解决问题:
in folder: \android-sdk-windows\ go to folder \platform-tools ; copy the files and paste in to folder \tool
在文件夹中: \android-sdk-windows\ 转到文件夹 \platform-tools ;复制文件并粘贴到文件夹 \tool
Restart the Eclipse
重启 Eclipse
回答by Cool Khan
turned off COMODO Defense+ module and all worked....
关闭 COMODO Defense+ 模块,一切正常....
回答by John Rumpel
If you have comodo internet securityinstalled, you dont have to shut this feature down:
如果您安装了comodo Internet Security,则不必关闭此功能:
- run comodo settings
- defense+
- list active processes
- add adb.exe to trusted processes
- restart server: run "adb kill-server" "adb start-server"
- 运行 comodo 设置
- 防御+
- 列出活动进程
- 将 adb.exe 添加到受信任的进程
- 重启服务器:运行“adb kill-server”“adb start-server”
EDIT: For user of Comodo 6.x
编辑:对于Comodo 6.x 的用户
- Open Comodo
- Click Tasks Icon at right top
- Click Advanced Tasks
- Click Open Advanced Settings
- Select Security Settings --> File Rating --> Trusted files from left panel
- Click on the upward arrow icon at the bottom
- Click Add --> add the adb.exe
- 打开科摩多
- 单击右上角的任务图标
- 单击高级任务
- 点击打开高级设置
- 从左侧面板选择安全设置 --> 文件评级 --> 受信任的文件
- 单击底部的向上箭头图标
- 单击添加 --> 添加 adb.exe
there you go :) Hope this helps
你去:) 希望这有帮助
回答by user2044187
I messed with all the solutions provided above, but I found another one-
我弄乱了上面提供的所有解决方案,但我找到了另一个-
Try launching eclipse with administrator privileges
尝试以管理员权限启动 eclipse
RUN AS ADMINISTRATOR
以管理员身份运行
hope it'll do the job.
希望它能完成这项工作。
回答by Ram
After installing 2.3 SDK I got adb inside D:\AndroidSetup\android-sdk- windows\platform-tools directory. I had set this path in environment variable and my problem is solved.
安装 2.3 SDK 后,我在 D:\AndroidSetup\android-sdk-windows\platform-tools 目录中找到了 adb。我在环境变量中设置了这条路径,我的问题就解决了。
回答by Konnect
Two options to solve this problem on windows:
Option 1:
在 Windows 上解决此问题的两个选项:
选项 1:
- Close the eclipse, if it is running.
- Run the command prompt.
- Go to the tools location of the android sdk.
- run 'adb kill-server'
- then run 'adb start-server'.
- start the eclipse.
- 关闭日食,如果它正在运行。
- 运行命令提示符。
- 转到android sdk 的工具位置。
- 运行“adb kill-server”
- 然后运行“adb start-server”。
- 开始日食。
Option 2:
选项 2:
- Open the task manager.
- kill the adb process.
- start the eclipse.
- 打开任务管理器。
- 杀死 adb 进程。
- 开始日食。
Problem should be solved.
问题应该得到解决。
回答by user456862
What it work for me and this was because I move from one eclipse to another is to re install SDK and then re install ADT again, remove completly from eclipse ADT and re install.
它对我有用,这是因为我从一个日食移动到另一个日食是重新安装 SDK,然后再次重新安装 ADT,从 Eclipse ADT 中完全删除并重新安装。
回答by hieudev
force to start sdk manager several times (try directly from the file explorer). when you could do that comodo may send a mesage. allow the issue. then start again the sdk manager and update. update eclipse then.
强制多次启动 sdk 管理器(直接从文件资源管理器尝试)。当你可以这样做时,comodo 可能会发送一条消息。允许问题。然后再次启动sdk管理器并更新。然后更新eclipse。
回答by VonC
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).
如该线程所示,您可能需要终止现有abd
进程,或取消阻止 5037 端口(先前adb
启动尝试的残余)。
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
尝试关闭 Eclipse,
C:\Users\Mohit\Documents\AndroidSDK\tools kill-server
从终端发出“ ”命令并重试。
如果这仍然不起作用,您可以尝试打开活动监视器以查看是否有任何现有的 adb 进程正在运行,并杀死它们。嗨,现在可以了,我用
nestat - a
命令行看到 5037 端口上有几个进程。用于模拟器的端口。
谢谢