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


当前回答

花了一段时间后,我发现问题是打开USB调试选项。只需在您的移动设置->开发人员选项->USB调试。只要启用它,它就会工作。 它可能会帮助到别人!

如果你没有看到开发者选项,那么尝试先启用它: 根据你的设备及操作系统,你可能需要转到“设置->关于设备或关于手机->软件信息”,然后按“生成号”七次。

其他回答

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

试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驱动程序”,并安装包。 重新启动计算机。

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

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

检查设备驱动程序 如果您的设备是Galaxy安装Kise将搜索您的驱动程序

尝试以下解决方案(适用于Windows):

进入sdk工具安装路径,在\sdk\platform-tools文件夹下运行以下命令: 亚洲开发银行设备

如果你的设备列出了它应该显示如下内容:

C:\android\sdk\platform-tools>adb devices
List of devices attached
081e96500591f039        device

如果没有,请遵循以下方法:

Try these commands: adb kill-server adb start-server Make sure your phone has Developer Options in Settings (if not, go to Settings, About phone (or device), click on Android Version multiple times until you see a message). Make sure USB debugging on your phone is enabled (go to Developer Options in Settings and turn it on) Make sure you have Select USB Configuration set to MTP (this is also in Developer Options). Make sure you can see your files in your device in Windows Explorer when you connect via USB. Make sure you have the driver for your device properly installed (most of the time, this happens when you first plug in your USB cable). In Windows, right click on Computer, and go to Device Manager, check if you have Android Device right on the root folder and under it should be Android Composite ADB Interface. If you don't have this, you have to download the Google USB Driver. Get it here:

http://developer.android.com/sdk/win-usb.html

在设备管理器中,找到您的设备(应该有黄色感叹号),右键单击,并更新驱动程序(打开带有您刚刚下载的驱动程序的文件夹) 如果这不起作用,尝试重新启动Android Studio或重新插入设备。

一些便宜的设备(一些30美元的平板电脑)不提供USB驱动程序来连接设备管理器,所以在这种情况下你就不走运了。

对于三星Galaxy s4,我通过安装Kies软件解决了这个问题,之后一切都很顺利。