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

查看:601
本文介绍了无法创建调试桥:无法启动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).

切换到USB模式并通过终端中的adb返回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或我的项目文件的驱动器完全不同的驱动器上的temp文件夹中找到了它。关闭所有内容,通过任务管理器杀死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设备导致一个空列表。从麻烦开始之日起,我的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,客户端支持=假
2016-05-23 10:13:24,082 [829809]警告-#com.android.ddmlib-无法获得 adb版本 $ b的结果$ b 2016-05-23 10:13:24,083 [829810]信息-ditor.DeployTargetPickerDialog-无法获取调试桥
java.lang.RuntimeException:无法创建调试桥:无法启动adb服务器:无法在com.android.tools.idea.ddms上获取 adb版本的结果

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防火墙和我的防病毒软件(趋势科技)。防火墙什么也没做,但是禁用趋势科技可以完全解决此问题...。

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

出于某种原因,趋势科技决定不喜欢由创建的守护程序亚行。 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天全站免登陆