Mac上的Android Studio无法检测到已连接的USB手机 [英] Android studio on Mac cannot detect connected USB phone

查看:1714
本文介绍了Mac上的Android Studio无法检测到已连接的USB手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

始终存在的问题,就是能够通过USB将Android设备连接到Mac上运行的Android Studio.

Constant issue with being able to connect an Android device via USB to Android Studio running on a Mac.

尝试过很多事情,例如:

Tried numerous things like:

  • 在Android上将USB调试模式切换为MTP或PTP
  • 重新启动Android设备和Android Studio和/或Mac
  • 先尝试adb kill-server,然后再尝试adb devices,通常会导致:

  • Switching USB debugging mode on Android to MTP or PTP
  • Restarting the Android devices and Android Studio and/or Mac
  • trying adb kill-serverand then adb devices, which usually resulted in:

连接的设备列表

List of devices attached

守护程序未运行.现在在端口5037上启动它

daemon not running. starting it now on port 5037

adb E 655 23135 usb_osx.cpp:327]无法打开界面:e00002c5

adb E 655 23135 usb_osx.cpp:327] Could not open interface: e00002c5

adb E 655 23135 usb_osx.cpp:289]找不到设备接口

adb E 655 23135 usb_osx.cpp:289] Could not find device interface

守护程序成功启动

但实际上找不到连接的设备.

But not actually finding the connected device.

推荐答案

有一些对其他人有用的出色答案,例如这个似乎对其他人有用的.

There are some great responses that worked for others, like this one or this one which seemed to work for others.

就我而言,问题是Tizen Studio(我正在为Samsung Gear开发手表应用程序).通过海报的研究,发现adb错误could not open interface: e00002c5暗示USB设备已被其他驱动程序使用

In my case, the issue was Tizen Studio (I was working on a watch app for Samsung Gear). Through this poster's research, found that the adb error could not open interface: e00002c5 implies that the usb device is already in use by some other driver.

因此,即使没有使用Tizen Studio,它似乎也占用了USB驱动程序资源.退出该应用程序将自动允许adb devices列出您的设备并在其上运行项目.

So it seems Tizen Studio takes up the usb driver resource even though it is not using it. Quitting the application will automatically allow adb devices to list your device and run the project on it.

希望这可以帮助其他迷路的人.

Hope this helps other lost souls.

这篇关于Mac上的Android Studio无法检测到已连接的USB手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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