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


当前回答

对我有用的是在你的手机设置下取消usb调试模式 开发人员选项,并允许再次它将 显示我的设备选项

其他回答

我也面临着同样的问题。结果发现是数据线有问题。该设备将开始充电,但不会显示在Android Studio的连接设备中。

尝试另一根电缆也没问题。

如果你已经用了一段时间,那就先换一根线试试。

在我的案例中,以下步骤有助于解决这个问题:

1)确保Android SDK管理器中安装了“谷歌USB Driver”软件包

2)从这里下载“ADB驱动安装程序2.0”

3)运行下载的工具,连接智能手机;在我的例子中,它显示驱动程序安装不正确,并建议修复它

在这些步骤之后,我的Android Studio立即识别了设备!MTP和PTP都开始工作了。


三星(Android 4.1.2)和小米MI4W (Android 4.4.4)测试

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).

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

我相信这对外面的人很有用。 在我的情况下,我在mac上运行Android Studio,也尝试Visual Studio Xamarin。同时打开这两扇门会造成这种冲突。所以关闭Visual就足够了。

对于三星Galaxy s4,我通过安装Kies软件解决了这个问题,之后一切都很顺利。