无法创建调试桥:无法启动 adb 服务器:无法获得“adb 版本"的结果 [英] Unable to create Debug Bridge: Unable to start adb server: Unable to obtain result of 'adb version'

查看:49
本文介绍了无法创建调试桥:无法启动 adb 服务器:无法获得“adb 版本"的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 10 64 位上运行 Android Studio.我在 5 月 20 日早上升级到最新版本和 SDK,此后打开 Android Studio 时出现上述错误.我还在事件日志中收到无法获得‘adb 版本’的结果".如果我启动应用程序(在更新前运行良好),将出现选择部署目标"窗口,显示初始化 ADB"和加载图形几秒钟,然后显示无显示"消息.以前我设置了 4 个不同的模拟器,并通过 USB 连接了一个活动设备.现在……没什么.

I am running Android Studio on Windows 10 64 bit. I upgraded to the latest build and SDK the morning of 5/20, and since then I get the above error when opening Android Studio. I also get the 'Unable to obtain result of 'adb version' in the event log. If I launch the application (which worked fine before the update) the 'Select Deployment Target' window appears, showing 'Initializing ADB' with a loading graphic for a few seconds, which then results in a 'Nothing to show' message. Previously I had 4 different emulators set up, and an active device connect via USB. Now ... nothing.

创建一个新的模拟器没有效果 - 我完成了这些步骤,但仍然看到无显示"消息.

Creating a new emulator has no effect - I go through the steps and still see the 'Nothing to show' message.

我尝试了以下方法:

  • 恢复使用较旧的平台工具
  • 删除并重新安装最新的平台工具
  • 完全删除并重新安装 Android Studio
  • 安装 Genymotion 以尝试模拟(我可以在 Genymotion 中创建和启动模拟器,这与 AS 中的上述问题没有区别)
  • 通过任务管理器杀死adb.exe,然后通过终端运行adb tcpip 5555,输出为:

  • Reverting to older platform tools
  • Removing and re-installing the latest platform tools
  • Removing and re-installing Android Studio completely
  • Installed Genymotion to try emulate through that (I can create and start the emulator in Genymotion, it makes no different to the above issue in AS)
  • killed adb.exe through Task Manager, then ran adb tcpip 5555 through the terminal, the output was:

  • 守护进程没有运行.现在在端口 5037 上启动它 *
  • 守护进程成功启动*在 TCP 模式下重启端口:5555

这令人鼓舞,但上述相同的问题仍然存在(即使在 AS 重新启动后).

Which was encouraging, but the same issue described above persists (even after a restart of AS).

在终端通过adb切换到USB模式并返回TCPIP,没有运气.

Switch to USB mode and back to TCPIP through adb in the terminal, no luck.

  • 将整个项目迁移到 Eclipse,直到我遇到 Google Play 服务的支持问题(所以我将不得不坚持使用 AS,但我在这里感到绝望)

任何可以提供帮助的人 - 我将不胜感激.

Anyone that can assist - I would greatly appreciate it.

更新 - 5/23

我搜索了 adb.log 并在与包含 AS 或我的项目文件的驱动器完全不同的驱动器上的临时文件夹中找到了它.关闭所有内容,通过任务管理器杀死 adb.exe 并删除文件.重新启动 AS 后,我收到以下消息:

I did a search for adb.log and found it in a temp folder on a completely different drive to the one that contains AS or my project files. Closed everything down, killed adb.exe through the task manager and deleted the file. Upon relaunching AS I received the following message:

消息截图

我可以通过终端启动/终止 ADB.adb devices 导致一个空列表.我的idea.log 文件充满了从我的麻烦开始之日起的条目.再次重新启动 AS 会导致通常的无法创建调试桥:无法启动 adb 服务器:无法获得adb 版本"消息的结果.

I could start/kill ADB through the terminal. adb devices resulted in an empty list. My idea.log file is filled with entries as from the date my trouble started. Restarting AS again resulted in the usual 'Unable to create Debug Bridge: Unable to start adb server: Unable to obtain result of 'adb version'' message.

这是我的idea.log文件中的最后一个条目:

Here is the last entry in my idea.log file:

2016-05-23 10:13:19,081 [824808] 信息 - tools.idea.ddms.adb.AdbService - 初始化 adb 使用:E:\Users\JakeSabre\AppData\Local\Android\sdk\platform-tools\adb.exe,客户端支持 = false2016-05-23 10:13:24,082 [829809] 警告 - #com.android.ddmlib - 无法获得adb 版本"的结果2016-05-23 10:13:24,083 [829810] 信息 - ditor.DeployTargetPickerDialog - 无法获得调试桥java.lang.RuntimeException: Unable to create Debug Bridge: Unable to start adb server: Unable to get result of 'adb version'

2016-05-23 10:13:19,081 [ 824808] INFO - tools.idea.ddms.adb.AdbService - Initializing adb using: E:\Users\JakeSabre\AppData\Local\Android\sdk\platform-tools\adb.exe, client support = false 2016-05-23 10:13:24,082 [ 829809] WARN - #com.android.ddmlib - Unable to obtain result of 'adb version' 2016-05-23 10:13:24,083 [ 829810] INFO - ditor.DeployTargetPickerDialog - Unable to obtain debug bridge java.lang.RuntimeException: Unable to create Debug Bridge: Unable to start adb server: Unable to obtain result of 'adb version'

at com.android.tools.idea.ddms.adb.AdbService$1.run(AdbService.java:236)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)

真正奇怪的部分是我昨天实际上设法使某些东西工作了 - 但我不知道如何.我启动 AS 并收到相同的错误,但随后启动了 Eclipse(Mars 2)并通过 Eclipse 启动了 Android 设备管理器.一旦我这样做了,我就可以通过 AS 模拟器启动我的应用程序!我将其全部关闭并再次尝试,以确保它再次起作用.

The really weird part is that I actually managed to get something working yesterday - but I don't know how. I started AS and received the same error, but then started Eclipse (Mars 2) and launched the Android Device Manager through Eclipse. As soon as I did I could launch my app through the AS emulator! I closed it all down and tried again, just to be sure and it worked again.

今天早上我尝试了同样的技巧,但被告知我的 SDK 丢失了.我检查了一下,确实缺少平台工具(不知道为什么).所以我再次安装它,遇到了常见的错误,现在我的 Eclipse 技巧不再有效.我觉得我在这里的暮光之城.

This morning I tried the same trick, but was told my SDK is missing. I checked and platform-tools was indeed missing (not sure why). So I installed it again, got the usual error, and now my trick with Eclipse is no longer working. I feel like I am in the Twilight Zone here.

推荐答案

作为我最初的故障排除的一部分,我可能应该这样做,但我最终禁用了 Windows 防火墙和我的防病毒 (Trend Micro).防火墙什么也没做,但是禁用趋势科技完全解决了这个问题......

I probably should have done this as part of my initial troubleshooting, but I ended up disabling Windows Firewall and my anti-virus (Trend Micro). The firewall did nothing, but disabling Trend Micro completely solved the issue....

不知何故,出于某种原因,趋势科技决定开始不喜欢 ADB 创建的守护进程.为这么一件小事流了4天的眼泪和沮丧.希望这能帮助其他人有一天避免它.

Somehow, for some reason, Trend Micro decided to start not liking the daemon being created by ADB. 4 days of tears and frustration over such a small thing. Hopefully this helps someone else one day avoid it.

这篇关于无法创建调试桥:无法启动 adb 服务器:无法获得“adb 版本"的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆