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


当前回答

切换到PTP USP选项而不是MTP是解决方案。

其他回答

这对我来说很管用:

windows 10。 Android Studio 4.1。 三星galaxy a50。

在Android Studio中这样做: 文件设置-语言和框架-颤振。 然后指向你电脑中你颤振的存储位置,比如: C:例如\Desktop\Flutter。

希望能有所帮助。: D

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).

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

不确定这个问题是否还没有解决。但我换了另一根usb线,解决了这个问题。希望这能帮你节省几个小时。哈哈

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

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

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

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

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

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

我不得不杀死所有adb,因为不知何故,Android Studio设法崩溃,不想再与adb通信。因此,我的设备没有显示出来。

因此,退出Android Studio,终止终端中的所有adb实例并再次启动Android Studio(应该询问它是否应该启用调试)起作用了。