Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?


当前回答

在我的情况下,我必须设置我的android启用USB调试。

https://developer.android.com/studio/run/device#setting-up

其他回答

AVD管理器用于模拟器图像。它从不显示硬件。这适用于任何AVD管理器的使用:Eclipse, Android Studio等。

我不得不杀死所有adb,因为不知何故,Android Studio设法崩溃,不想再与adb通信。因此,我的设备没有显示出来。

因此,退出Android Studio,终止终端中的所有adb实例并再次启动Android Studio(应该询问它是否应该启用调试)起作用了。

请确保您已经下载了设备正在使用的版本的正确API。在更新设备的Android版本或切换到其他设备后,您可能无法在Android Studio上下载正确的API。这样做:

检查您的设备的Android操作系统版本,请进入设置>关于>手机的Android版本 确保在SDK管理器的Android Studio中安装了正确的API

尝试以下命令并重新连接您的设备,它将显示。

亚行kill-server

I recently had trouble with this, and regardless of what I did(restart adb, edit adb_usb.ini, restart computer+device+swap usb port, reinstall studio etc. etc.) I just couldnt get it to work, and could not even detect my device using 'adb devices'. Finally after about 2 hours of googling and testing, someone suggested switching to PTP instead of MTP on my device. When I did this I got a popup on my device asking me to allow my mac access and suddenly everything worked(had to restart studio for it to show up there as well though).

我现在可能会碰到这个线程,但它是谷歌搜索的第一个结果,我有很多麻烦找到这个问题的答案,所以我认为这应该作为一个解决方案添加。