macbook adb无法打开界面 [英] macbook adb cannot open interface

查看:188
本文介绍了macbook adb无法打开界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过USB调试Android ADB时遇到问题.

I am encountering a problem with Android ADB debugging through USB.

使用Macbook Air 2013并尝试连接Nexus 6开发者手机.

Using Macbook Air 2013 and trying to connect Nexus 6 dev phone.

在MAC Android Studio上,已安装android最新的sdk.

On the MAC Android Studio, android latest sdk is installed.

我这样做

adb kill-server
adb devices

我得到:

adb I   661  9881 usb_osx.cpp:259] Found vid=18d1 pid=**** serial=*****
adb I   661  9881 usb_osx.cpp:259] 
adb E   661  9881 usb_osx.cpp:331] Could not open interface: e00002c5
adb E   661  9881 usb_osx.cpp:265] Could not find device interface

因此它发现设备,供应商ID,产品ID和序列与我在Nexus 6的系统信息中找到的匹配.

So it found the device, vendor id, product id and serial match what I find in the system information for the Nexus 6.

以下是我在网上找到的建议,但没有成功-以下问题可以解决:

Following suggestions found online I tried - but no success - the following to resolve:

  • 禁用并重新启用手机上的调试模式,并在用于充电的USB配置,MTP,PTP,RNDIS,音频源,MIDI之间进行切换,始终确保为Mac的RSA指纹提供了授权.

  • dis- and reenabling debugging mode on the phone, also switching between USB configs for charging, MTP, PTP, RNDIS, Audio Source, MIDI, always making sure the authoriztation for the Mac's RSA fingerprint is given

关闭Android Studio/DDMS,通过"kill-server"命令杀死adb以及通过Apple活动监视器杀死进程

closing Android Studio / DDMS, killing adb through 'kill-server' command as well as killing process through Apple activity monitor

以root身份运行adb

run adb as root

多次重启Mac

重新启动Nexus 6

reboot the Nexus 6

完全重新安装Android SDK

reinstall Android SDK completely

尝试了另一个启用了调试功能的Android设备(三星Galaxy Tab,也在这里adb找到了正确的设备信息,但无法访问界面并出现相同的错误)

tried with another debugging enabled Android Device (Samsung Galaxy Tab, also here adb found correct device info but cannot access interface with same error)

尝试了3种不同的USB电缆,所有电缆最初都是与Android设备一起提供的

tried with 3 different USB cables, all cables which were originally shipped with Android devices

通过google,我了解到错误代码e00002c5表示该设备已被其他驱动程序使用.

Through google I learned that error code e00002c5 means the device is already in use by another driver.

我最近安装了Sophos Home Antivir.考虑到这可能会阻止ADB打开设备界面,我使用提供的卸载程序完全卸载了Sophos,然后重新启动了Mac.

I had recently installed Sophos Home Antivir. Thinking that this might prevent ADB from opening the device interface, I uninstalled Sophos completely with the provided uninstaller and rebooted the Mac.

任何提示都值得赞赏:

  • 解决哪些步骤?

  • which steps to resolve?

因为e00002c5似乎清楚地表明另一个驱动程序正在使用该设备,如何确定哪个进程以及如何阻止该进程执行

as e00002c5 seems to be a clear indicator that another driver has the device in use, how to find out which process that is and how to stop it from doing that

推荐答案

我也遇到了此错误,结果发现对我来说问题是

I ran into this error as well, and it turned out that the problem for me was that a Stetho tab was open in Chrome (i.e. a tab at URL chrome://inspect/#devices ), which I guess was causing the device to be in use. Closing that tab, then running adb kill-server, made adb devices work again.

这篇关于macbook adb无法打开界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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