Adb 服务器没有响应

发布于 2024-10-24 07:30:55 字数 539 浏览 5 评论 0原文

我是一个安卓新手。我想我可能在这里做了一些愚蠢的事情。我已经启动了虚拟设备,并且看到 adbd 守护进程正在从终端仿真器运行。当我运行 adb devices 时,出现以下错误:

C:\Program Files\Android\android-sdk\tools>adb devices
* daemon not running. starting it now on port 5037 * 
ADB server didn't ACK
* failed to start daemon * 
error: cannot connect to daemon

没有其他进程正在使用端口 5037。我做错了什么?这是我安装的软件包 -

1) Android SDK Tools, revision 10
2) Android SDK Platform-Tools, revision 3
3) SDK Platform Android 2.3.3, API 10, revision 1

I am a Android newbie. I guess I might be doing something stupid here. I have started the Virtual Device and I see that adbd daemon is running from the Terminal Emulator. When I run adb devices I get the following error:

C:\Program Files\Android\android-sdk\tools>adb devices
* daemon not running. starting it now on port 5037 * 
ADB server didn't ACK
* failed to start daemon * 
error: cannot connect to daemon

No other process is using port 5037. What am I doing wrong? Here are the packages I have installed -

1) Android SDK Tools, revision 10
2) Android SDK Platform-Tools, revision 3
3) SDK Platform Android 2.3.3, API 10, revision 1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

清晰传感 2024-10-31 07:30:55

如果 abd 无法正常启动并且在执行 adb Kill-server 时没有退出,则通常会发生这种情况。

所以如果在 Windows 中
1. 转到任务管理器(CTRL+ALT+DEL)
2.查找adb.exe并结束进程。
现在重新启动模拟器,应该可以正常工作了。

此外,您还可以关闭并启动开发环境(例如:Eclipse 或 NetBeans)。

This will occur normally,if abd is not able to launch properly and didn't exit when adb kill-server is executed.

So if in Windows
1. Go to Task Manager (CTRL+ALT+DEL)
2.look for adb.exe and end the process.
Now restart the emulator ,should work properly.

additionally you can close and launch the development environment also (eg: Eclipse or NetBeans).

迷荒 2024-10-31 07:30:55

我怀疑这个问题是由许多 adb 实例(在 Windows 中)引起的,我通常会遇到这个问题,因为我不关闭系统,因此 adb 进程可能无法正常结束。

因此,打开任务管理器,选择“进程”选项卡,只需搜索 adb.exe,右键单击它并选择“结束进程树”,而不仅仅是“结束进程”

I suspect the problem is cause of many adb instances (in windows) , i usually face this problem cause i don't turn off my system so the adb process may not end properly.

So open task manager choose Process tab just search for adb.exe, right click on it and choose End Process Tree rather than just End Process

忆沫 2024-10-31 07:30:55

有同样的问题,看来我的安全解决方案阻止了 adb.exe

Had the same problem, it seems that my security solution was blocking adb.exe

烟花易冷人易散 2024-10-31 07:30:55

这不是 adb 的正确文件夹:最近 adb 已从 sdk 文件夹中的 /tools 移至 /platform-tools。

this is not the right folder for adb : lately adb has moved from /tools to /platform-tools in the sdk folder.

梨涡 2024-10-31 07:30:55

似乎安全程序阻止了 adb.exe,因此请转到 adb 文件路径并打开 adb 的属性,然后检查以管理员身份运行此程序 设置。

Seems like the security program is blocking adb.exe, so go to the adb file path and open adb's properties, then check the Run this program as administrator setting.

素年丶 2024-10-31 07:30:55

就我而言,当我连接手机时,进程 adb.exe 启动,然后当我 adb devices 时,我遇到了你的问题,杀死该进程并不能帮助它像顽固的僵尸一样复活,只要手机已连接。
所以我的解决方案是断开手机连接,然后杀死 adb.exe 进程,然后通过 adb devices 启动它并连接手机
之后,当我命令 adb devices 时,我会得到关于杀死 adb 过时的相同提示,但这次第二行是 * 守护程序已成功启动 *

win xp
HTC 感觉
来自谷歌的新 eclipse adt sdk 捆绑包,所以我想是最新的。

In my case the process adb.exe starts when i connect the phone, and then when I adb devices then I have your problem, and killing the process does not help it is resurrecting like a stubborn zombie, as long as the phone is connected.
so my solution was to disconnect the phone, then kill adb.exe process, then start it by adb devices and connect the phone
After that when i command adb devices i ma getting the same prompt about killing adb out of date, but this time on the second line is * daemon started sucessfully*

win xp
htc sensation
the new eclipse adt sdk bundle from google so i suppose up to date.

下雨或天晴 2024-10-31 07:30:55

我发现Windows任务管理器中有一个名为“Tadb.exe”的进程。
我猜Tadb.exe是腾讯的一个类似的adb应用程序。因为我昨天安装了最新版本的腾讯QQ2013 Beta5(6970)后,收到“QQ检测到安卓设备”的警告。

我杀掉Tadb.exe后,Android SDK原来的adb.exe又可以工作了。

您可以在这里查看解决此问题的详细过程:
adb 无法运行,adb 服务器已过期

I found there was a process call "Tadb.exe" in Windows Task Manager.
I guess Tadb.exe is a similiar adb application of Tencent. Because I got an alert of "android device detected by QQ" after I install the last version of Tencent QQ2013 Beta5 (6970) yesterday.

After I killed the Tadb.exe, the original adb.exe of Android SDK works again.

You can see the detailed proecss to solve this problem here:
adb cannot run, adb server is out of date

简单爱 2024-10-31 07:30:55

我关闭了 Windows 防火墙,它的工作就像魔术一样。我通过 WiFi 连接到互联网。如果您没有使用代理并且仍然无法通过模拟器通过无线链接访问互联网,请转至设备管理器并禁用您的 LAN 卡。

I turned off the Windows Firewall and its working like magic. I am connected to the Internet through WiFi. If you are not behind a proxy and are still unable to access the Internet through a wireless link via the emulator, go to Device Manager and disable your LAN card.

满地尘埃落定 2024-10-31 07:30:55

正如我通过结合omni.present的方法进行的尝试,最终模拟器工作正常。
首先我在任务管理器中停止 adb.exe 进程
然后我停止并启动 Eclipse

As I have tried as follow by combining omni.present's method , and finally emulator works fine.
firstly I stop adb.exe process in the task manager
then I stop and start eclipse

爱给你人给你 2024-10-31 07:30:55

根本原因是因为你机器上的5037端口被某个进程占用,不仅Android设备无法使用adb连接ios设备也无法使用iTunes。

可以查询进程并关闭它,netstat /a/o也许可以帮助你占用最多5037个端口。

对于windows7,LogsAndAlerts服务将占用端口5037。

The fundamental reason is because the 5037 port on your machine to be occupied by a process, not only Android devices can not use adb connection ios device not use iTunes.

Can query process and close it, netstat / a / o maybe can help you to take up to 5037 ports.

To windows7 the LogsAndAlerts service will occupy port 5037.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文