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


当前回答

我知道这听起来很疯狂,但我只是在连接时重启手机,它就出现了

其他回答

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

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

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

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

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

如果你仍然有这个问题(2015年夏天之后),也许你应该:

点击这里:http://developer.android.com/sdk/win-usb.html#top 下载驱动程序 重新安装它

我最近安装了Windows 10(不是升级,是一个干净的安装),我忘记了ADB USB驱动程序

在我的情况下,解决方案是关闭重新启动Android Studio

我插入了我的手机,它被检测(不需要设备管理器或类似的东西)..但Android Studio并没有注意到这一点。

我发现要满足两个条件

- PTP (not MTP)
- USB Debugging mode on

对于PTP,进入设置..存储..(对于MTP/PTP,也许在我的nexus它在那里,但在我的doogee我看到它在“开发人员选项”..然后在网络下面,在输入上面,它说“选择usb配置”)

对于USB调试,设置..关于..点击build约7次,然后出现一个usb调试的新选项,你可以打开它。

添加这也与USB调试或MTP/PTP被移动https://android.stackexchange.com/questions/213059/where-is-the-mtp-and-ptp-option-in-android-9