Adb Kill-server 没有响应?

发布于 2024-12-25 20:48:43 字数 726 浏览 1 评论 0原文

在 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 技术交流群。

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

发布评论

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

评论(10

瀞厅☆埖开 2025-01-01 20:48:43

当我尝试在模拟器中安装一个应用程序时,我也遇到了同样的错误。您无需重新启动电脑即可解决此问题。干掉服务器就好了如果“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!!

烧了回忆取暖 2025-01-01 20:48:43

如果僵尸 adb 进程不是问题,即任务管理器列表中没有 adb.exe,则问题通常是 adb 端口,例如 5555 、5554、5037 等,被其他应用程序占用。

解决方案:

  1. 在所有 Windows 上:使用 netstat -bn 查找占用这些端口之一的进程,并从任务管理器中杀死它 Ctrl+Shift+Esc 是快捷方式。

  2. 在 Windows 7 和 8 上:有一个名为 资源监视器。它还允许您在网络选项卡下找出被阻止的端口和阻止的进程。

  3. 在 Linux 上:使用 netstat -pn 完成类似操作。请根据需要随意使用 grep foo 并使用 killpkill 终止阻塞进程。

  4. 更改默认 ADB 端口:显然默认 ADB 端口可以按照此处,在启动 ADB 之前设置环境变量。开枪吧。如果您不想终止阻塞进程,它将提供更大的灵活性。

If zombie adb process is not the issue i.e. there's no adb.exe in the task-manager list, the problem is usually adb ports e.g. 5555, 5554, 5037 etc., being taken by other applications.

Solutions:

  1. On all Windows: find the process taking one of those ports using netstat -bn and kill it from task-manager Ctrl+Shift+Esc is the shortcut.

  2. On Windows 7 and 8: there's this new tool called Resource Monitor. It'll also allow you to find out the blocked port and blocking process under the network tab.

  3. On Linux: the similar is done with netstat -pn. Feel free to use your grep foo as needed and kill the blocking process with kill or pkill.

  4. 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.

九八野马 2025-01-01 20:48:43

任务管理器->流程-> adb.exe ->;结束进程

这对我有用。

Task Manager -> Process -> adb.exe -> End process

That worked for me.

浪荡不羁 2025-01-01 20:48:43
  1. 导航到 adb.exe 文件夹,
  2. shift + 右键单击​​该文件夹,
  3. 从此处启动命令
  4. 行,拔下连接到 PC 的任何 Android 设备,输入
  5. “adb.exe wait-for device”;按 Enter
  6. 连接您的设备;等待命令行
  7. 完成
  1. navigate to adb.exe folder
  2. shift + right click inside the folder
  3. start commandline from here
  4. unplug any android device connected to your PC
  5. type "adb.exe wait-for-device"; press Enter
  6. connect your device; wait for commandline to finish
  7. done
孤星 2025-01-01 20:48:43

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 computer

First, I used ps -ef | grep adb and killed all adb deamonswhich did not solve the problem.
Then I used
ps -ef | grep javaand saw a process that was blocking theadb`.

Upon killing that process, adb worked perfectly.
Maybe this process can be helpful for someone.

遗心遗梦遗幸福 2025-01-01 20:48:43

在尝试从 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.

兰花执着 2025-01-01 20:48:43

请安装以下软件包,

sudo apt-get install lib32z1 lib32z1-dev lib32stdc++6

如果您使用 Genymotion,

然后在其设置中设置 Android SDK 的路径。参考:http://www. intellicode.in/adb-not-responding-wait-more-or-kill-adb-or-restart/

install following packages

sudo apt-get install lib32z1 lib32z1-dev lib32stdc++6

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/

無處可尋 2025-01-01 20:48:43

在您的 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 .

星星的轨迹 2025-01-01 20:48:43

如果使用“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

寂寞清仓 2025-01-01 20:48:43

来自 James Tan 的回答:

研究了很久,终于发现adb
守护进程不断重新启动。这是因为我的chrome已经启用
安卓调试器。在chrome地址栏中,打开:
chrome://inspect#devices,然后取消选中发现 USB 设备

接下来:

  1. 以管理员身份打开 Power Shell
  2. cd C:\Users\PC01\AppData\Local\Android\Sdk\platform-tools
  3. ./adb Kill-server
  4. 。 /adb 启动服务器

From James Tan's answer:

After investigating for a long time, finally i found out that adb
daemon keep restarting. and it is because my chrome have enabled
android debugger. In chrome address bar, open:
chrome://inspect#devices, then uncheck Discover usb devices.

Next:

  1. Open Power Shell as administrator
  2. cd C:\Users\PC01\AppData\Local\Android\Sdk\platform-tools
  3. ./adb kill-server
  4. ./adb start-server
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文