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


当前回答

当我面对这个问题时,我使用的是Android Studio 3.1版本。我尝试了上面的很多方法,没有一个对我有效(不知道为什么:/)。最后我自己尝试了一些不同的东西。我的方法是:

在去咆哮步骤之前,确保

*Your "Google USB Driver" package is installed ("Tools" -> "SDK Manager" -> Check "Google USB Driver" -> "Apply" -> "Ok").

*If you are trying to access with emulator then check "Intel x86 Emulator Accelarator(HAXM installer)" is instaled. ("Tools" -> "SDK Manager" -> Check "Intel x86 Emulator Accelarator(HAXM installer)"" -> "Apply" -> "Ok")

转到工具。 然后进入SDK管理器。 开放SDK工具。 取消勾选“Android SDK Platform-Tools”(在我的情况下,它是选中的)。 按apply然后ok。 再次进入工具。 然后进入SDK管理器。 开放SDK工具。 查看“Android SDK平台-工具” 重启Android Studio:)

希望这能帮助到像我这样的人。

其他回答

我的设置

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.

如果您的设备在此问题之前正在使用Android Studio,那么重新启动设备可以解决问题。

重新启动后,请确保再次从开发人员选项中打开USB调试。

尝试以下命令并重新连接您的设备,它将显示。

亚行kill-server

2020年11月27日更新

还有一个原因是你的电缆可能坏了(只能充电,不能调试)。因此,买一个新的吧!^^


我知道“无法将设备与Android Studio连接”对于新手来说是一个很烦人的问题,但我在Android方面已经有很长一段时间了。大多数常用的方法已经尝试过了:

如何打开开发人员模式。 忘记打开USB调试。 有时需要切换USB配置到传输文件。 一些关于adb命令的潜意识指导,但我从未尝试过。 试试新的电缆。 ...

然而,什么对我来说是撤销访问再次为您的设备将连接到的计算机,即:

转到开发人员选项。 取消USB调试授权。 等待一段对话,并询问您的访问许可。 你的设备已经在Android Studio中列出了。

我插入了我的手机,它被检测(不需要设备管理器或类似的东西)..但Android Studio并没有注意到这一点。

我发现要满足两个条件

- PTP (not MTP)
- USB Debugging mode on

对于PTP,进入设置..存储..(对于MTP/PTP,也许在我的nexus它在那里,但在我的doogee我看到它在“开发人员选项”..然后在网络下面,在输入上面,它说“选择usb配置”)

对于USB调试,设置..关于..点击build约7次,然后出现一个usb调试的新选项,你可以打开它。

添加这也与USB调试或MTP/PTP被移动https://android.stackexchange.com/questions/213059/where-is-the-mtp-and-ptp-option-in-android-9