解决android SDK“无法解析adb版本的输出”的问题
我遇到了“无法解析 adb 版本的输出”...我以前做过并设法使其再次工作,但这次我所有的努力都是徒劳的。 所以请帮忙!!!
我尝试过:
- 从任务管理器或通过cmd关闭adb进程,通过“adbkill-server”并重新启动eclipse...+其他变体重新
- 安装了新的Eclipse 3.7和最新的android-sdk-r13...
- 做了一个“netstat -o”(一些论坛提到这个...看看我的5537是否被另一个进程使用...)
基本上我无法将Eclipse连接到模拟器。 我最近的胜利:通过cmd“adb connect 127.0.0.1:5555”,它说“连接到127.0.0.1:5555”,但显然我不是!但我注意到,在执行此命令之后,在 1-2 秒内,模拟器会出现在 DDMS 视角的设备选项卡中,但仅持续 1-2 秒,并带有“离线”标签...哦是的,我在 Virtual Box 中使用虚拟机(我在 5555 上使用 NAT+PCFASTIII + 端口转发,女巫意味着它应该可以工作,但事实并非如此),也尝试使用经典模拟器...相同的结果。 - 另外,当我执行“adb start-server”时,它会在 5537 上启动它(如预期)
有人知道如何解决这个问题吗?
I've run into the "failed to parse output of adb version"... i done it before and managed somehow to make it work again, but this time all my efforts were in vain.
So please help!!!
I've tried:
- closing the adb process from taskmanager or by cmd, by "adb kill-server" and restarting eclipse ... + other variations
- re-installed a fresh Eclipse 3.7 and the latest android-sdk-r13 ...
- did a "netstat -o" (some forums mention this... to see if my 5537 is used by another process...)
Basically I can't connect Eclipse to a emulator.
My latest triumph: by cmd "adb connect 127.0.0.1:5555" and it says "connected to 127.0.0.1:5555" but obviously I'm NOT! But I've noticed that after this command, for 1-2 fractions of a second, the emulator appears in devices tab in DDMS perspective, but just for 1-2 fractions of a second, with a "offline" tag... Oh yeah, i use a virtual machine in Virtual Box (I use NAT+PCFASTIII + port forwarding on 5555, witch means it should work, but it doesn't), also tried with the classic emulator ... same result.
- also when i do the "adb start-server" it starts it on 5537 (as expected)
Does anyone know how to resolve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对不起比尔......
我设法让它再次工作。我所做的是为我的 Virtual Box 机器添加端口 5554 的端口转发(我已经为端口 5555 添加了端口转发),现在它可以工作了。它对我来说仍然有虚假的感觉,但有效。
Sorry Bill...
I managed to make it work again. What i did is added port forwarding for my Virtual Box machine for port 5554 (i already had it for port 5555) and it works now. It still has bogus sens for me, but works.
我有类似的问题。我的防火墙阻止了 adb,因此将其设置为“受信任的应用程序”可以解决此问题。
I had similar problem. My firewall was blocking adb, so making it "trusted application" solves it.