如何在 Eclipse 中修复 adb?

How can I fix adb in eclipse?

[2015-02-13 00:03:06 - hhh] The connection to adb is down, and a severe error has occured.
[2015-02-13 00:03:06 - hhh] You must restart adb and Eclipse.
[2015-02-13 00:03:06 - hhh] Please ensure that adb is correctly located at 'F:\android\android-sdk\platform-tools\adb.exe' and can be executed.

虽然位置正确

这是我遇到此类问题时常用的检查清单。现在,我使用 Android Studio,发现我 运行 很少遇到这类问题。

  • 重新启动 Eclipse 并查看问题是否仍然存在
  • 如果您在 Windows,请打开任务管理器并结束 adb 进程。重新启动 Eclipse。 (如果您使用的是 macOSX,我不知道如何结束进程。您必须 Google 它。抱歉!)
  • 再次确保 100% 确保 eclipse 设置中的 android SDK 路径正确。如果您进行了更改,请重新启动 Eclipse。

编辑:点击 Josef 在评论中提供的链接 he/she 回复您。

尝试以下步骤:

如果 运行 关闭 Eclipse 转到命令提示符中的 Android SDK platform-tools 目录 键入 adb kill-server(在发出这些命令之前应关闭 Eclipse) 然后输入 adb start-server adb server 启动时没有报错,adb 启动成功。 现在您可以再次启动 Eclipse。 它以这种方式对我有用。

也重新启动您的 phone! [reference]