Android ADB 看不到设备
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11810537/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android ADB doesn't see device
提问by Adrian Deja
I'm trying to run my applications on OMEGA T107 tablet. But adb
doesn't see my device. I tried almost everything.
我正在尝试在 OMEGA T107 平板电脑上运行我的应用程序。但adb
没有看到我的设备。我几乎尝试了所有方法。
采纳答案by Omid Heshmatinia
I tried all the ways listed on the web for a whole day, but I didn't get any solutions. Then, I followed a link and in just two minutes my problem was solved!
我把网上列出的所有方法都试了一天,但没有得到任何解决方案。然后,我点击了一个链接,在短短两分钟内我的问题就解决了!
By the way, it's for Windows users!
顺便说一下,它是为 Windows 用户准备的!
Find out the vendor id of the device from device manager.
To do this, connect the OTG port to the USB port of your computer.
Go to Start Menu and right-click on “My Computer” and chose “Properties”.
Select the “Devices” option which will open “Device Manager”.
Select your device (mostly in USB devices or Other devices) and right-click and choose “Properties”.
Choose the “Details” tab and select “Hardware Ids” from the property dropdown, you can see the hardware id, in my case it was x2207 .
Open android_winusb.inf and add these lines:
从设备管理器中找出设备的供应商 ID。
为此,请将 OTG 端口连接到计算机的 USB 端口。
转到开始菜单并右键单击“我的电脑”并选择“属性”。
选择“设备”选项,这将打开“设备管理器”。
选择您的设备(主要是 USB 设备或其他设备)并右键单击并选择“属性”。
选择“详细信息”选项卡并从属性下拉列表中选择“硬件 ID”,您可以看到硬件 ID,在我的例子中是 x2207 。
打开 android_winusb.inf 并添加以下几行:
;<Device name> in our case I gave MK808
%SingleAdbInterface% = USB_INSTALL, USB\VID_2207&PID_0010&MI_01
%CompositeAdbInterface% = USB_INSTALL, USB\VID_2207&PID_0010&REV_0222&MI_01
Open C:\Users\.android\adb_usb.ini and add the following entry
打开 C:\Users\.android\adb_usb.ini 并添加以下条目
0x<device id> .. in our case it is 0x2207
Restart ADB by
重启亚行
adb kill-server
adb start-server
Now ADB should recognize the device.
现在 ADB 应该可以识别该设备。
回答by Ads
Some of these answers are pretty old, so maybe it's changed in recent times, but I had similar issues and I solved it by:
其中一些答案已经很旧了,所以最近可能已经改变了,但是我遇到了类似的问题,我通过以下方式解决了它:
- Loading the USB drivers for the device - Samsung S6
- Enable Developer tools on the phone.
- On the device, go to Settings - Applications - Development - Check USB Debugging
- Reboot O/S (Windows 7 - 64bit)
- Open Visual Studio
- 为设备加载 USB 驱动程序 - 三星 S6
- 在手机上启用开发者工具。
- 在设备上,转到设置 - 应用程序 - 开发 - 检查 USB 调试
- 重新启动操作系统(Windows 7 - 64 位)
- 打开 Visual Studio
I think it was step 3 that had me stumped for a while. I'd enabled developer tools, but I didn't specifically enable the "USB Debugging" but.
我认为是第 3 步让我难住了一段时间。我启用了开发人员工具,但我没有专门启用“USB 调试”。
回答by Rémi Becheras
The normal way to fix this is indeed to restart the adb server :
解决此问题的正常方法确实是重新启动 adb 服务器:
adb kill-server
adb start-server
then
然后
adb devices -l
should list connected devices
应该列出连接的设备
But it possible that it doesnt fix the problem. It appends to me.
但它可能无法解决问题。它附加到我。
I had to disable/enable
the debug mode on the device, and then restart adb server.
我不得不disable/enable
在设备上进入调试模式,然后重新启动 adb 服务器。
回答by Reza
I had same issue, none of the solutions worked for me.
我有同样的问题,没有一个解决方案适合我。
Open Settings Menu -> Developer Options -> USB Debugging should be on
打开设置菜单 -> 开发者选项 -> USB 调试应该打开
回答by madhead
On Windows it is most probably that the device drivers are not installed properly.
在 Windows 上,很可能是设备驱动程序安装不正确。
First, install Google USB Driver
from Android SDK Manager.
首先,Google USB Driver
从 Android SDK Manager安装。
Then, go to Start
, right-click on My Computer
, select Properties
and go to Device Manager
on the left. Locate you device under Other Devices
(Unknown devices
, USB Devices
). Right-click on it and select Properties
. Navigate to Driver
tab. Select Update Driver
and then Browse my computer for driver software
. Choose %ANDROID_SDK_HOME%\extras\google\usb_driver
directory. Windows should find and install drivers there. Then run adb kill-server
. Next time you do adb devices
the device should be in the list.
然后,转到Start
,右键单击My Computer
,选择Properties
并转到Device Manager
左侧。在Other Devices
( Unknown devices
, USB Devices
)下找到您的设备。右键单击它并选择Properties
。导航到Driver
选项卡。选择Update Driver
然后Browse my computer for driver software
。选择%ANDROID_SDK_HOME%\extras\google\usb_driver
目录。Windows 应该在那里找到并安装驱动程序。然后运行adb kill-server
。下次你做adb devices
的设备应该在列表中。
回答by Aswin Kumar
On windows, you will need to install drivers for the device for adb to recognize it. To see if the drivers are installed, check the device manager. If there is any "unrecognized device" in the device manager, the drivers are not installed. You can usually get the adb drivers from the manufacturers.
在 Windows 上,您需要为设备安装驱动程序,以便 adb 识别它。要查看是否安装了驱动程序,请检查设备管理器。如果设备管理器中有任何“无法识别的设备”,则表示未安装驱动程序。您通常可以从制造商那里获得 adb 驱动程序。
回答by phyatt
For Windows 8 64 bit with a Nexus 10 device, this worked for me:
对于带有 Nexus 10 设备的 Windows 8 64 位,这对我有用:
https://github.com/koush/UniversalAdbDriver
https://github.com/koush/UniversalAdbDriver
It has a link at the bottom to this:
它在底部有一个链接:
http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi
http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi
回答by Frank Sposaro
What operating system are you on? If you running Windows you will want to make sure you have the drivers. You should also make sure that your Android SDK Manager is not only installed, but it also contains some additional things for different devices. Not sure if yours is in there or not.
你在什么操作系统上?如果您运行 Windows,您将需要确保您拥有驱动程序。您还应该确保您的 Android SDK 管理器不仅已安装,而且还包含一些适用于不同设备的附加内容。不确定你的是否在那里。
Make sure that your phone has debugging enabled. I found myself having to run
确保您的手机已启用调试。我发现自己不得不跑
adb kill-server
adb devices
adb 杀死服务器
亚行设备
often.
经常。
回答by Steffy Joseph
It worked for me in my Astro Tab A737 Download and install PdaNet+ from http://pdanet.co/a/in your computer.
它在我的 Astro Tab A737 中对我有用 从http://pdanet.co/a/下载并在您的计算机中安装 PdaNet+ 。
follow all steps in the wizard while installing .Once the drivers are installed Android studio should recognize the tablet.
安装时按照向导中的所有步骤进行操作。安装驱动程序后,Android studio 应该可以识别平板电脑。
Also, make sure the device is in PTP mode.
此外,请确保设备处于 PTP 模式。
回答by Elvedin Hamzagic
Uninstalling all old "Android ADB Interface" drivers that were installed previously and then installing the new one worked for me.
卸载以前安装的所有旧的“Android ADB 接口”驱动程序,然后安装新的驱动程序对我有用。