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


当前回答

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

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

其他回答

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

亚行kill-server

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

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

就我而言,我知道这很蠢,但我必须这么做。

我尝试了以上所有的解决方案,没有一个有效。t射击的一个关键是当adb设备不会列出该设备时,那么您就知道您还没有烹饪气体。

在设备通过adb注册为设备之前,在USB模式之间切换不会有效果。你会知道什么时候发生,因为你会得到一个关于RSA密钥的提示。

这是一个相对较新的Windows 7安装。在手机的USB通知区,我切换到“安装驱动程序”,让它安装我的adb驱动程序。在我的情况下,我永远不会在互联网上得到任何合法的东西。

一旦我看到成功安装,我切换到PTP,它就工作了。

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

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

我在windows 8中遇到过同样的问题,并找到了解决方案。

1)右键单击“我的电脑”。 2)点击管理器。 3)进入设备管理器。 4)右键单击设备名称(下面是其他设备)。 5)点击更新驱动程序。 6)点击下一步。 7)点击“Let me know…”标签。

驱动程序将自动安装。

它对我很有效。