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


当前回答

这个想法是在你的电脑上修复USB驱动程序。 Start -> Device Manger ->其他设备。 右键单击USB设备,然后更新驱动程序软件->浏览我的电脑..->让我选…-> Android设备->下一步。

其他回答

我的Nexus 5手机在设置菜单中没有开发者选项。我必须做到以下几点:

在Android 4.2及更新版本上,开发者选项默认是隐藏的。要使它可用,请进入“设置”>关于电话,并点击“构建号码”七次。返回到前一个屏幕以查找Developer选项。

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

I recently had trouble with this, and regardless of what I did(restart adb, edit adb_usb.ini, restart computer+device+swap usb port, reinstall studio etc. etc.) I just couldnt get it to work, and could not even detect my device using 'adb devices'. Finally after about 2 hours of googling and testing, someone suggested switching to PTP instead of MTP on my device. When I did this I got a popup on my device asking me to allow my mac access and suddenly everything worked(had to restart studio for it to show up there as well though).

我现在可能会碰到这个线程,但它是谷歌搜索的第一个结果,我有很多麻烦找到这个问题的答案,所以我认为这应该作为一个解决方案添加。

我插入了我的手机,它被检测(不需要设备管理器或类似的东西)..但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

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