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


当前回答

不确定这个问题是否还没有解决。但我换了另一根usb线,解决了这个问题。希望这能帮你节省几个小时。哈哈

其他回答

我的设置

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.

它为我工作如下步骤:-

如果您使用Windows,由于驱动程序问题,设备将无法显示。

转到设备管理器(使用开始搜索即可) 并查找任何显示错误的设备。许多机器人会显示为一个未知的USB设备,并带有感叹号。选择该设备并尝试更新它的驱动程序。更新部分请参考链接:universal adb

但在此之前,你必须更新你的sdk管理器,并确保谷歌USB驱动软件包安装。

完成后,驱动程序文件被下载到\extras\谷歌\usb_driver\目录中。提示:搜索“android_winusb”。在Windows启动和打开文件位置下的inf",以获得所提到的目录。

打开你的设备管理器,导航到你的android设备,右键点击它,选择更新驱动程序软件,然后选择浏览驱动程序软件。按照前面的文件位置路径安装谷歌USB驱动程序。

重新启动Android设备中的Android Studio和开发者选项,并重新连接USB。

干杯!

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

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

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

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

AVD管理器用于模拟器图像。它从不显示硬件。这适用于任何AVD管理器的使用:Eclipse, Android Studio等。