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


当前回答

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

同时取消勾选“工具”-“Android”-“启用ADB集成”。

这是我把Windows升级到10后的工作。

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

我做过很多处理这个问题的方法。以下是你需要一步步遵循的内容。我希望这能帮到你。

步骤1:确保您的设备已启用开发。

步骤2:在您将设备插入PC之前,确保您选择了USB连接方法。

第三步:当你插入手机时,你会得到USB连接方法的选项,选择互联网连接。确保你已经连接到互联网。

第四步:在Android Studio中运行应用程序,它会要求您授权设备进行开发,并选择YES。

第五步:通过Android Studio运行应用程序,选择设备,而不是模拟器,然后BINGO!欢迎来到Android开发版。

打开USB调试开关,将设备连接到PC。等待设备被PC检测到。连接时,关闭USB调试,然后再次打开。