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


当前回答

尝试改变usb连接模式到midi设备。这对我很管用。

其他回答

AVD管理器用于模拟器图像。它从不显示硬件。这适用于任何AVD管理器的使用:Eclipse, 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).

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

这个想法是在你的电脑上修复USB驱动程序。 Start -> Device Manger ->其他设备。 右键单击USB设备,然后更新驱动程序软件->浏览我的电脑..->让我选…-> Android设备->下一步。

要更改应用程序在Android Studio中单击运行或调试时的默认值,请遵循以下步骤:

1. 点击运行

2. 点击编辑配置

3.选择项目

4. 在Android应用程序页面的General标签下找到目标设备部分。

这似乎是您切换项目构建内容的地方。如果你导入一个项目,它实际上默认为模拟器,不知道为什么。您还可以选择“打开选择部署目标对话框”来列出连接和模拟设备。