Android Studio中的AVD管理器不显示我的设备,但adb设备显示它。我是不是遗漏了什么明显的东西?
当前回答
对我有用的是在你的手机设置下取消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驱动程序来连接设备管理器,所以在这种情况下你就不走运了。
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).
我现在可能会碰到这个线程,但它是谷歌搜索的第一个结果,我有很多麻烦找到这个问题的答案,所以我认为这应该作为一个解决方案添加。
有些电缆不能用于开发人员模式或传输文件。一个解决办法是更换你的有线电视,不要浪费时间。
Trendblog邮件
编辑
一些USB3端口也会引起问题。不确定是否有办法检查电缆/usb是否工作。但是有一种方法可以检测出USB类型是USB2还是USB3?. 如果您正在使用USB3,也可能是端口问题。
如果有人对三星GT-I9060有问题,我在SO上遵循了这个答案:
如果你在windows上,很多时候它将无法识别该设备 完全由于驱动程序问题,设备不会显示。 进入设置 控制面板 硬件和声音 设备管理器 并查找任何显示错误的设备。许多机器人会显示为 未知的USB设备。选择该设备并尝试更新 驱动因素。
我卸载了设备,拔下设备,再插上。这一次Windows正确地安装了驱动程序。真扫兴。
我的Nexus 5手机在设置菜单中没有开发者选项。我必须做到以下几点:
在Android 4.2及更新版本上,开发者选项默认是隐藏的。要使它可用,请进入“设置”>关于电话,并点击“构建号码”七次。返回到前一个屏幕以查找Developer选项。
推荐文章
- 如何允许所有网络连接类型HTTP和HTTPS在Android(9)馅饼?
- Android加载JS包失败
- Android Studio, logcat在应用程序关闭后清理
- 在android中从上下文获取活动
- 无法解析主机"<URL here>"没有与主机名关联的地址
- getActivity()在Fragment函数中返回null
- 按钮背景是透明的
- 在Mac OS X上哪里安装Android SDK ?
- 我如何获得图像缩放功能?
- 在Android应用程序中显示当前时间和日期
- BottomSheetDialogFragment的圆角
- 在应用程序启动时出现“无法获得BatchedBridge,请确保您的bundle被正确打包”的错误
- 我如何改变默认对话框按钮的文本颜色在安卓5
- 更改单选按钮的圆圈颜色
- 如何在android中复制一个文件?