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

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

其他回答

执行以下步骤来解决上述问题。

右键单击项目 选择“创建运行配置” 所有的测试。(第二个选项) 在“General”页签中——>目标设备

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

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

在Windows 7上,唯一对我有用的就是这个。 进入设备管理器->在Android手机下->右击并选择“启用”

在完成所有这些操作的同时,不要忘记增加睡眠时间,这样如果设备提示在移动设备上进行身份验证,您就知道连接成功了。

试1:

安装“microsoft universal c runtime”。 根据您的操作系统下载文件。 https://support.microsoft.com/en-in/help/2999226/update-for-universal-c-runtime-in-windows

从Developersdeveloper.android.com安装谷歌USB驱动程序不适合我。 试2:

搜索“androidmtk”,安装驱动程序安装程序。(重启电脑)(检查设备是否显示) 否则搜索“adbdriver”并安装驱动程序安装程序。(重启电脑)(检查设备是否显示)

试3:

检查Android studio的状态栏(显示在窗口的最底部)是否显示了任何消息。执行消息中建议的更改。

尝试4:

检查更改连接类型后是否显示设备(多为拖动主屏顶部栏显示)。 即。“仅收费”,“传输文件”,“传输照片PTP或MTP”

尝试5:

进入Android“工具菜单”->“SDK管理器”-> 在“Android SDK location”下面,你会看到3个标签。 从它点击“SDK工具”,在列表中找到并标记“谷歌USB驱动程序”,并安装包。 重新启动计算机。