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


当前回答

令人惊讶的是,在Debian Linux上对我有效的只有:

adb kill-server

不用再开始了!!

我一关闭服务器,设备就出现在Android Studio中。我发现这一点的唯一原因是我的终端模拟器窗口是透明的。: D

其他回答

我的设置

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调试,然后再次打开。

所以我使用的是Android Studio 3.1,上面没有任何工作。唯一解决这个问题的是启用“使用libusb后端”复选框,见附件

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

我最近遇到了这个问题,我的公司分配给我的新电脑是一台联想L450(安装了Windows 10),我无法连接我的手机(红米note3)用于调试。我的Android设备与我的另一台电脑运行良好,用于调试。

我还尝试了与adb相关的命令,并试图找到所有可能的解决方案。然后我去YouTube上寻求帮助,这个视频非常有用:https://www.youtube.com/watch?v=7KdH4j7aAPM