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


当前回答

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

其他回答

打开调试模式后,打开设置/开发人员选项 更新配置相同的映像

如果你的手机之前还能用

在你做任何复杂的事情之前,这可能是一个简单的问题。拔下插头再插上。

如果有其他问题

您还可能希望检查您的配置是否设置为启动到您的手机。

执行命令——> edit configuration

如果你要在模拟器上的设备之间切换,请确保你要么默认使用USB设备,要么使用选择器对话框。

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

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

它为我工作如下步骤:-

如果您使用Windows,由于驱动程序问题,设备将无法显示。

转到设备管理器(使用开始搜索即可) 并查找任何显示错误的设备。许多机器人会显示为一个未知的USB设备,并带有感叹号。选择该设备并尝试更新它的驱动程序。更新部分请参考链接:universal adb

但在此之前,你必须更新你的sdk管理器,并确保谷歌USB驱动软件包安装。

完成后,驱动程序文件被下载到\extras\谷歌\usb_driver\目录中。提示:搜索“android_winusb”。在Windows启动和打开文件位置下的inf",以获得所提到的目录。

打开你的设备管理器,导航到你的android设备,右键点击它,选择更新驱动程序软件,然后选择浏览驱动程序软件。按照前面的文件位置路径安装谷歌USB驱动程序。

重新启动Android设备中的Android Studio和开发者选项,并重新连接USB。

干杯!

尝试以下解决方案(适用于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驱动程序来连接设备管理器,所以在这种情况下你就不走运了。