android - "Failed to parse the output of ' adb 版本 '", "The connection to adb is down, and a severe error has occurred"

标签 android eclipse eclipse-plugin adt eclipse-adt

目前我什至无法获得 Hello World app从 Android 教程开始工作。我正在尝试在我的 Galaxy S4 上运行它。我的手机启用了 USB 调试并禁用了应用程序的 USB 验证。我下载并安装了 Android 4.2.2 SDK (API17),目前正在 Windows 上使用带有 ADT 插件的 Eclipse。

首先它会给出“无法解析‘adb 版本’的输出”错误消息,然后在控制台中打印以下内容:

[2013-06-12 23:02:50 - TestApp] ------------------------------
[2013-06-12 23:02:50 - TestApp] Android Launch!
[2013-06-12 23:02:50 - TestApp] The connection to adb is down, and a severe error has occured.
[2013-06-12 23:02:50 - TestApp] You must restart adb and Eclipse.
[2013-06-12 23:02:50 - TestApp] Please ensure that adb is correctly located at 'C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe' and can be executed.

命令“adb devices”同时显示我的手机和模拟器,从模拟器运行也不起作用。它甚至不让我选择要运行的设备,它只是立即给出错误。

到目前为止我尝试过的:
重新启动我的电脑
adb kill-server/start-server 并重启 Eclipse
转到任务管理器并结束 adb.exe 进程,然后重新启动 Eclipse
添加 adb.exe 作为可信/关闭防火墙
确保我安装了所有正确的驱动程序
卸载 Eclipse 并重新下载 ADT 包
将 sdk/platform-tools 的内容复制到 sdk/tools(我在另一个线程中看到有人建议复制到 sdk/tool 但我没有找到一个名为的文件夹所以我创建了一个)

在尝试的过程中: 更新 JDK 到最新版本 使用安卓工作室

编辑:从 Android Developer site 下载 ADT 包我仍然遇到与他们的 eclipse 版本相同的问题。

最佳答案

您的 adb 不在 tools 文件夹中。这是解决方案:

  • 在文件夹中:\android-sdk-windows\ 转到文件夹\platform-tools

  • 复制文件并将它们粘贴到文件夹 \tools

  • 重启 Eclipse

关于android - "Failed to parse the output of ' adb 版本 '", "The connection to adb is down, and a severe error has occurred",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17080423/

相关文章:

c - Eclipse System-Workbench (Win 10 v4.6.3) 在包含 .h 文件时忽略大小写

java - 如何动态加载目录中的所有jar?

java - 在 JFace 向导页面之间传递数据

android - 关闭游标的成语

android - 在 Android 上动态添加 TextView 到 ScrollView

Android,我是否使用 ViewModel 执行插入或更新?

java - Eclipse e4 : Accessing properties in PostContextCreate

javascript - Java 10 下的 Eclipse Window Builder 错误

java.lang.RuntimeException : Failure delivering result ResultInfo{who=null, 请求=1,结果=-1,数据= Intent }到 Activity

java - 如何配置 Eclipse 以便它在 Java 类的底部添加私有(private)字段?