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


当前回答

更新最后一个usb驱动程序

安装谷歌USB驱动

在Android Studio中,单击Tools > Android > SDK管理器。 单击“SDK工具”页签。 选择“谷歌USB驱动包”,单击“安装”。 继续安装包。完成后,驱动程序文件被下载到\extras\谷歌\usb_driver\目录中。

其他回答

我的设置

Android Studio 3.5.3 macOS 10.14.6 Android 9设备通过Belkin USB集线器连接到Mac。

当从谷歌的Android github repo运行Kotlin示例项目时,没有配置,也没有设备显示在UI中。

解决方案

File > Sync Project with Gradle Files But my internet connection needs a fix, so I had to go to Preferences > System Settings > HTTP Proxy to specify a working proxy. Make sure buildscript{ ext.kotlin_version } runs a more recent version. I had to upgrade it from 1.2.xx to 1.3.xx. Now the project appears to be ready to build (the default emulator Nexus config is now enabled). Rebuild the project for the emulator just to make sure. Then I had to unplug my device from the USB hub and connect it to Mac directly. Now Android Studio sees my device. Plug the device again into the USB hub. Now Android Studio sees my device with the hub, too.

打开USB调试开关,将设备连接到PC。等待设备被PC检测到。连接时,关闭USB调试,然后再次打开。

如果你使用三星,你可以从三星下载并安装设备驱动程序。

Note

您需要启用ADB模式(如第11条评论) 你需要在Android Studio中将目标设置为“打开选择部署目标”对话框。设置目标:执行命令>编辑配置>目标>打开选择部署目标对话框

已经有很多答案了,但我刚刚下载了一个运行O的模拟器,在那之后,任何设备都再也不能工作了。我删除了模拟器从AVD管理器杀死adb,然后重新启动Android工作室。将USB移动到另一个端口,设备又在那里了。

以上答案都没有解决我的问题,直到我更新SDK平台工具。这可能是这个问题的原因之一。