简体   繁体   English

即使 adb 识别它,Android Studio 也无法识别 MacOS 上的设备

[英]Android Studio doesn't recognize device on MacOS even though adb recognizes it

Hi I am running Mac OS 10.15.3 and I wanna debug my app from Android Studio 3.6.1 to my Nexus 5 .嗨,我正在运行Mac OS 10.15.3 ,我想将我的应用程序从Android Studio 3.6.1调试到我的Nexus 5 But Android Studio for for some reason doesn't recognize device even though if I run adb devices it lists my device and says that it is connected.但是 Android Studio 由于某种原因无法识别设备,即使我运行adb devices它列出我的设备并说它已连接。 I checked USB settings in phone and I enabled debugging and tried setting MTP and PTP.我检查了手机中的 USB 设置并启用了调试并尝试设置 MTP 和 PTP。 Also in Android Studio under "Device File Explorer" I see error message saying:同样在“设备文件资源管理器”下的 Android Studio 中,我看到错误消息说:

"Error Initializing ADB: Android Debug Bridge not found. “初始化 ADB 时出错:找不到 Android 调试桥。

Even though it is installed and I can issue adb commands through terminal.即使它已安装,我也可以通过终端发出adb命令。

Did anyone had this issue with MacOS and Android Studio ?有没有人在 MacOS 和 Android Studio 上遇到过这个问题?

This problem is related to the last update of Android Studio.此问题与 Android Studio 上次更新有关。 Check this: https://stackoverflow.com/a/60872065/8083220 .检查这个: https : //stackoverflow.com/a/60872065/8083220

You can check if the tools are up to date.您可以检查工具是否是最新的。

Find this icon in the top-right of Android Studio.在 Android Studio 的右上角找到这个图标。

在此处输入图片说明

It opens Android SDK menu.它会打开Android SDK菜单。 Now, click on the SDK Tools pane.现在,单击SDK Tools窗格。

在此处输入图片说明

Update all the outdated tools that you can and retry.更新所有可以使用的过时工具并重试。 I now this is not the best answer but give it a try.我现在这不是最好的答案,但试一试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM