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

查看:208
本文介绍了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,通常会导致:

连接的设备列表

守护进程没有运行.现在在端口 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 开发手表应用程序).通过this海报的研究,发现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天全站免登陆