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


当前回答

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

其他回答

对于三星Galaxy s4,我通过安装Kies软件解决了这个问题,之后一切都很顺利。

我的设置

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调试模式

如果“允许USB调试模式”选项被禁用。然后,您可能已经将该设备连接到您的PC。断开设备连接,该选项现在应该可用了

注意:在Android 4.2及更新版本上,开发者选项默认是隐藏的。要使它可用,请进入“设置”>关于电话,并点击“构建号码”七次。返回到前一个屏幕以查找Developer选项。

如果还是没用,你可以用这个表达来谷歌它:

如何启用YOUR_PHONE_TYPE上的开发人员选项

为了避免任何人5分钟的挠头,“开发人员选项”现在在“设置/系统和更新/开发人员选项”下

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

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