Adb Kill-server 没有响应?
在 ADB 中,当我尝试打印版本时遇到错误,
padmakumar@padmakumar-desktop:~$ adb version
Android Debug Bridge version 1.0.29
但它显示以下错误
padmakumar@padmakumar-desktop:~$ adb devices
error: protocol fault (no status)
注意: adb Kill-server
不起作用,即它没有响应。
在我的 Eclipse 控制台中我收到此错误:
Android Launch!
[2012-01-09 20:31:28 - Shopping List] The connection to adb is down, and a severe error has occured.
[2012-01-09 20:31:28 - Shopping List] You must restart adb and Eclipse.
[2012-01-09 20:31:28 - Shopping List] Please ensure that adb is correctly located at '/home/padmakumar/android-sdk/platform-tools/adb' and can be executed.
In ADB, I am facing an error when I am trying to print the version with
padmakumar@padmakumar-desktop:~$ adb version
Android Debug Bridge version 1.0.29
but its showing below error
padmakumar@padmakumar-desktop:~$ adb devices
error: protocol fault (no status)
NOTE: adb kill-server
is not working i.e it's not responding.
and in my Eclipse console I am getting this error:
Android Launch!
[2012-01-09 20:31:28 - Shopping List] The connection to adb is down, and a severe error has occured.
[2012-01-09 20:31:28 - Shopping List] You must restart adb and Eclipse.
[2012-01-09 20:31:28 - Shopping List] Please ensure that adb is correctly located at '/home/padmakumar/android-sdk/platform-tools/adb' and can be executed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
当我尝试在模拟器中安装一个应用程序时,我也遇到了同样的错误。您无需重新启动电脑即可解决此问题。干掉服务器就好了如果“adb Kill-server”也不起作用,请通过任务管理器终止进程(adb.exe)。给你!
I also came across the same error when I was trying to install one app in emulator. You need not restart PC to overcome this. Just kill the server. if 'adb kill-server' is also not working, kill the process (adb.exe) through task manager. There you go!!
如果僵尸
adb
进程不是问题,即任务管理器列表中没有adb.exe
,则问题通常是adb
端口,例如 5555 、5554、5037 等,被其他应用程序占用。解决方案:
在所有 Windows 上
:使用netstat -bn
查找占用这些端口之一的进程,并从任务管理器中杀死它Ctrl+Shift+Esc
是快捷方式。在 Windows 7 和 8 上
:有一个名为资源监视器
。它还允许您在网络选项卡下找出被阻止的端口和阻止的进程。在 Linux 上
:使用netstat -pn
完成类似操作。请根据需要随意使用grep
foo 并使用kill
或pkill
终止阻塞进程。更改默认 ADB 端口
:显然默认 ADB 端口可以按照此处,在启动 ADB 之前设置环境变量。开枪吧。如果您不想终止阻塞进程,它将提供更大的灵活性。If zombie
adb
process is not the issue i.e. there's noadb.exe
in the task-manager list, the problem is usuallyadb
ports e.g. 5555, 5554, 5037 etc., being taken by other applications.Solutions:
On all Windows
: find the process taking one of those ports usingnetstat -bn
and kill it from task-managerCtrl+Shift+Esc
is the shortcut.On Windows 7 and 8
: there's this new tool calledResource Monitor
. It'll also allow you to find out the blocked port and blocking process under the network tab.On Linux
: the similar is done withnetstat -pn
. Feel free to use yourgrep
foo as needed and kill the blocking process withkill
orpkill
.Change Default ADB Port
: Apparently default ADB port can be changed as described here by setting up an environmental variable before launching ADB. Give it shot. It'll allow more flexibility if you don't want to kill the blocking processes.这对我有用。
That worked for me.
adb Kill-server
在我的 Linux 计算机上不起作用首先,我使用了
ps -ef | grep adb
并杀死了所有adb
deamons,但这并没有解决问题。
然后我使用了ps -ef | grep java
并看到一个正在阻塞
adb`的进程。终止该进程后,
adb
完美运行。也许这个过程对某人有帮助。
adb kill-server
did not work on my Linux computerFirst, I used
ps -ef | grep adb
and killed alladb
deamonswhich did not solve the problem.
ps -ef | grep javaThen I used
and saw a process that was blocking the
adb`.Upon killing that process,
adb
worked perfectly.Maybe this process can be helpful for someone.
在尝试从 Windows 任务管理器终止多个 adb.exe 进程时,它显示“访问被拒绝”。在 Windows 7 上,资源监视器允许终止这些 adb.exe 进程。
On trying to kill multiple adb.exe processes from windows Task Mgr it said "Access is denied". On Windows 7, Resource Monitor allows those adb.exe processes to be killed.
请安装以下软件包,
如果您使用 Genymotion,
然后在其设置中设置 Android SDK 的路径。参考:http://www. intellicode.in/adb-not-responding-wait-more-or-kill-adb-or-restart/
install following packages
if you are using Genymotion then set path of Android SDK in its settings.
ref :http://www.intellicode.in/adb-not-responding-wait-more-or-kill-adb-or-restart/
在您的 SDK 路径中再次安装 ADB.EXE,例如
步骤:
1) 关闭您的 Android Studio
2) 计算机中的精细路径->[驱动器][您的 SDK 路径]\Sdk\platform-tools
3) 将此路径替换为 adb.exe 文件或如果没有更新请重新下载 adb.exe 文件。
4)如果命令提示符打开并且详细信息可见,请单击adb.exe,然后自动关闭然后它的工作。或者,如果发生任何错误或无法再次启动 adb-server,请替换此文件。
5)现在成功运行你的adb-server打开android studio并在开发者选项打开后连接你的设备。
Install again ADB.EXE in your SDK path like
Steps :
1)Close Your Android Studio
2)Fine path in Your Computer->[drive][your SDK path]\Sdk\platform-tools
3)Replace this path at adb.exe File or Download again if not updated adb.exe File.
4)Click on adb.exe if the command prompt is open and details see and then close automatically then its work. OR if any error occurred or not start adb-server again replace this file .
5)Now successfully run your adb-server open android studio and connect your device after Developer Option ON .
如果使用“kill-server”参数不起作用,您将不得不终止进程本身。
如果您使用 GNU/Linux,则必须使用命令“ps aux|grep adb”来查找 adb 进程的 pid,或者直接使用“pidof adb”然后“kill PID”,其中 PID 是 adb 进程的 pid 号亚行进程。这也应该适用于 Macintosh 和其他 Unix(尽管“ps”命令的参数可能不同)
在 Windows 中,只需打开任务管理器并终止进程表中的 adb 条目
If using the "kill-server" parameter doesn't work you will have to kill the process itself.
In case you use GNU/Linux you have to use the command "ps aux|grep adb" to find the pid of the adb proccess, or directly with "pidof adb" and then "kill PID" where PID is the pid number of the adb process. This should also work with Macintosh and other Unixes (although the parameters of the "ps" command may be different)
In Windows just open the task manager to and kill the adb entry in the proccesses table
来自 James Tan 的回答:
接下来:
cd C:\Users\PC01\AppData\Local\Android\Sdk\platform-tools
./adb Kill-server
。 /adb 启动服务器
From James Tan's answer:
Next:
cd C:\Users\PC01\AppData\Local\Android\Sdk\platform-tools
./adb kill-server
./adb start-server