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


当前回答

我相信这对外面的人很有用。 在我的情况下,我在mac上运行Android Studio,也尝试Visual Studio Xamarin。同时打开这两扇门会造成这种冲突。所以关闭Visual就足够了。

其他回答

如果你的手机之前还能用

在你做任何复杂的事情之前,这可能是一个简单的问题。拔下插头再插上。

如果有其他问题

您还可能希望检查您的配置是否设置为启动到您的手机。

执行命令——> edit configuration

如果你要在模拟器上的设备之间切换,请确保你要么默认使用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.

我发现适合我的方法是:

CD到你的sdk platform-tools文件夹 检查adb是否看到您的设备 亚行。/设备 如果它显示“设备连接列表”和下面的空行,然后重新启动adb,如下所示: 亚行kill-server。/ 亚洲开发银行。/启动服务器 然后重新运行./adb devices,看看它是否拾取了该设备,如下所示: 所附设备清单 015年d2bc285601c0a设备

如果你仍然有这个问题(2015年夏天之后),也许你应该:

点击这里:http://developer.android.com/sdk/win-usb.html#top 下载驱动程序 重新安装它

我最近安装了Windows 10(不是升级,是一个干净的安装),我忘记了ADB USB驱动程序

要更改应用程序在Android Studio中单击运行或调试时的默认值,请遵循以下步骤:

1. 点击运行

2. 点击编辑配置

3.选择项目

4. 在Android应用程序页面的General标签下找到目标设备部分。

这似乎是您切换项目构建内容的地方。如果你导入一个项目,它实际上默认为模拟器,不知道为什么。您还可以选择“打开选择部署目标对话框”来列出连接和模拟设备。