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


当前回答

在Windows 7上,唯一对我有用的就是这个。 进入设备管理器->在Android手机下->右击并选择“启用”

其他回答

我的设置

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.

执行以下步骤来解决上述问题。

右键单击项目 选择“创建运行配置” 所有的测试。(第二个选项) 在“General”页签中——>目标设备

我知道这听起来很疯狂,但我只是在连接时重启手机,它就出现了

如果你的Windows甚至不能安装驱动程序,你应该进入设备管理器并获得设备ID(右键单击你的设备->属性->详细信息->硬件ID(在属性中)。 从Android Studio安装谷歌USB驱动程序。 进入android_winusb。inf文件(ANDROID_SDK_DIR/extras/谷歌/usb_driver/),并根据文件格式添加您的设备ID。 再次运行“adb devices”,一切正常。

打开调试模式后,打开设置/开发人员选项 更新配置相同的映像