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


当前回答

Android Studio也没有在Windows上显示我的设备(三星Galaxy Alpha),直到我从三星支持页面下载并安装了Windows驱动程序。我不得不在设备上使用MTP连接模式。我还在第一次连接设备后确认了对计算机的授权。

其他回答

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

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

打开调试模式后,打开设置/开发人员选项 更新配置相同的映像

执行以下步骤来解决上述问题。

右键单击项目 选择“创建运行配置” 所有的测试。(第二个选项) 在“General”页签中——>目标设备

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

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

如果有人对三星GT-I9060有问题,我在SO上遵循了这个答案:

如果你在windows上,很多时候它将无法识别该设备 完全由于驱动程序问题,设备不会显示。 进入设置 控制面板 硬件和声音 设备管理器 并查找任何显示错误的设备。许多机器人会显示为 未知的USB设备。选择该设备并尝试更新 驱动因素。

我卸载了设备,拔下设备,再插上。这一次Windows正确地安装了驱动程序。真扫兴。