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


当前回答

切换到PTP USP选项而不是MTP是解决方案。

其他回答

检查设备驱动程序 如果您的设备是Galaxy安装Kise将搜索您的驱动程序

对我有用的是在你的手机设置下取消usb调试模式 开发人员选项,并允许再次它将 显示我的设备选项

对我来说,Macbook USB C Hub才是问题所在。我把手机直接连接到Mac USB C端口,工作起来很有魅力!希望这对你有所帮助!

请确保您已经下载了设备正在使用的版本的正确API。在更新设备的Android版本或切换到其他设备后,您可能无法在Android Studio上下载正确的API。这样做:

检查您的设备的Android操作系统版本,请进入设置>关于>手机的Android版本 确保在SDK管理器的Android Studio中安装了正确的API

我的设置

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.