Android Nexus 5 USB 驱动程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20168898/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 02:24:38  来源:igfitidea点击:

Nexus 5 USB driver

androideclipse

提问by serget

I want to develop and debug Nexus 5 with ADT (based on Eclipse) in Windows 7 x64.

我想在 Windows 7 x64 中使用 ADT(基于 Eclipse)开发和调试Nexus 5

As I connect Nexus 5, it appears in Windows in Explorer, so I can transfer files to/from Nexus. Next step I enable USB debugging in Developer options on the phone; the phone shows notification "USB debugging connected", device disappears from Explorer and Windows tries to install a driver and fails. In Device Manager I see Nexus 5 with exclamation mark icon in "Other devices". Then I select Update Driver Software in Device Manager for Nexus 5 > Browse My computer for driver software > provide path to the driver I downloaded from here http://developer.android.com/sdk/win-usb.html: C:\Program Files\Android\usb_driver, check "Include subfolders" and click Next.

当我连接 Nexus 5 时,它出现在资源管理器的 Windows 中,因此我可以将文件传输到/从 Nexus 传输。下一步我在手机的开发者选项中启用USB调试;手机显示“USB 调试已连接”通知,设备从资源管理器中消失,Windows 尝试安装驱动程序并失败。在设备管理器中,我在“其他设备”中看到带有感叹号图标的 Nexus 5。然后我在 Nexus 5 的设备管理器中选择更新驱动程序软件 > 浏览我的计算机以查找驱动程序软件 > 提供我从这里下载的驱动程序的路径http://developer.android.com/sdk/win-usb.html: C:\ Program Files\Android\usb_driver,勾选“包括子文件夹”并点击下一步。

I get the message "Windows could not find driver software for your device". I tried all kinds of tricks suggested on Internet including this topic: What USB driver should we use for the Nexus 5?

我收到消息“ Windows 找不到您设备的驱动程序软件”。我尝试了互联网上建议的各种技巧,包括这个主题: 我们应该为 Nexus 5 使用什么 USB 驱动程序?

Nothing helps. Any idea how to force Nexus 5 to work on Windows?

没有任何帮助。知道如何强制 Nexus 5 在 Windows 上工作吗?

Looks like Google released Nexus 5 without providing an updated driver (the last version is dated 07/09/2013, version 8.0 making it useless for developer on Windows platform.

看起来谷歌发布的 Nexus 5 没有提供更新的驱动程序(最后一个版本的日期是 07/09/2013,版本 8.0 使其对 Windows 平台上的开发人员无用。

回答by user3079537

Currently experienced this problem with my Nexus 5, when attempting to sideload latest 4.4.1 OTA update via stock recovery.

我的 Nexus 5 目前在尝试通过库存恢复加载最新的 4.4.1 OTA 更新时遇到了这个问题。

Solution:

解决方案:

  1. Open Android SDK Manager (in console get to sdk directory then run tools\android)
  2. Download/install latest USB drivers (under Extras).
  3. In Windows Device Manager (devmgmt.msc), right click the Nexus 5 device and select Update Driver Software.
  4. Browse My Computer for driver software > Android SDK Dir > Extras > usb_driver
  1. 打开Android SDK Manager(在控制台进入sdk目录然后运行tools\android)
  2. 下载/安装最新的 USB 驱动程序(在 Extras 下)。
  3. 在 Windows 设备管理器 (devmgmt.msc) 中,右键单击 Nexus 5 设备并选择更新驱动程序软件。
  4. 浏览我的电脑以获取驱动程序软件 > Android SDK Dir > Extras > usb_driver

回答by sonida

I just wanted to bring a small contribution, because I have been able to debug on my Nexus 5 device on Windows 8, without doing all of this.

我只是想做出一点贡献,因为我已经能够在 Windows 8 上的 Nexus 5 设备上进行调试,而无需执行所有这些操作。

When I plugged it, there was no yellow exclamation mark within the device manager. So for me, the drivers was OK. But the device was not listed within my eclipse ddms. After a little bit of searching, It was just an option to change in the device settings. By default, the Nexus 5 usb computer connection is in MTP mode (Media Device).

当我插入它时,设备管理器中没有黄色感叹号。所以对我来说,司机们还好。但是该设备未在我的 eclipse ddms 中列出。经过一番搜索,这只是在设备设置中更改的一个选项。默认情况下,Nexus 5 USB 计算机连接处于 MTP 模式(媒体设备)。

What you have to do is:

你需要做的是:

  1. Unplug the device from the computer
  2. Go to Settings -> Storage.
  3. In the ActionBar, click the option menu and choose "USB computer connection".
  4. Check "Camera (PTP)" connection.
  5. Plug the device and you should have a popup on the device allowing you to accept the computer's incoming connection, or something like that.
  6. Finally you should see it now in the ddms and voilà.
  1. 从计算机上拔下设备
  2. 转到设置-> 存储。
  3. 在操作栏中,单击选项菜单并选择“USB 计算机连接”。
  4. 检查“相机(PTP)”连接。
  5. 插入设备,您应该在设备上有一个弹出窗口,允许您接受计算机的传入连接,或类似的东西。
  6. 最后,您现在应该在 ddms 和 voilà 中看到它。

I hope this will help!

我希望这个能帮上忙!

回答by swiftBoy

Well @sonida's answer helped me but Here I am posting complete step How I did it.

好吧@sonida 的回答帮助了我,但我在这里发布了完整的步骤我是如何做到的。

Change Mobile Device Settings:

更改移动设备设置:

  1. Unplug the device from the computer
  2. Go to Mobile Settings -> Storage.
  3. In the ActionBar, click the option menu and choose "USB computer connection".
  4. Check "Camera (PTP)" connection.
  1. 从计算机上拔下设备
  2. 转到移动设置 -> 存储。
  3. 在操作栏中,单击选项菜单并选择“USB 计算机连接”。
  4. 检查“相机(PTP)”连接。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

Download Google USB Driver:

下载谷歌 USB 驱动程序:

5 .Now go to http://developer.android.com/sdk/win-usb.html#topand download USB Drivers --> unzip folder.

5 .现在去http://developer.android.com/sdk/win-usb.html#top并下载 USB 驱动程序 --> 解压文件夹。

enter image description here

在此处输入图片说明

Install USB Drivers and Get Connected Device:

安装 USB 驱动程序并获取连接的设备:

6.Then Right click on My computer -->Manage --> Device Manager.

6.然后右键单击我的电脑-->管理-->设备管理器。

enter image description here

在此处输入图片说明

7.You should seed Nexus 5 in the list.

7.您应该在列表中播种 Nexus 5。

8.Right click on Nexus 5 --> Update Driver Software... --> Browse my computer for driver software

8.右键单击 Nexus 5 --> 更新驱动程序软件... --> 浏览我的计算机以查找驱动程序软件

enter image description here

在此处输入图片说明

9.select the folder we downloaded/unzipped "latest_usb_driver_windows" and Next ...Ok.

9.选择我们下载/解压缩的文件夹“latest_usb_driver_windows”,然后下一步...好的。

enter image description here

在此处输入图片说明

10.Now you will see pop-up dialogue asking for Allow device --> Ok.

10.现在您将看到弹出对话框,要求允许设备 --> 确定。

11 .That's it!! device is connected now, you can see in DDMS.

11 .就是这样!!现在设备已连接,您可以在 DDMS 中看到。

enter image description here

在此处输入图片说明

Hope this will help someone.

希望这会帮助某人。

回答by fada21

Is it your first android connected to your computer? Sometimes windows drivers need to be erased. Refer http://forum.xda-developers.com/showthread.php?t=2512549

这是您的第一个连接到计算机的安卓系统吗?有时需要擦除 Windows 驱动程序。参考http://forum.xda-developers.com/showthread.php?t=2512549

回答by Matt Stevens

Windows 7 x32 I found that no matter what I did, the driver being used dated back to 2006. It would not update, in fact Windows appears to be preferring the old driver to the new. I eventually found a way to sort it.

Windows 7 x32 我发现无论我做什么,使用的驱动程序都可以追溯到 2006 年。它不会更新,实际上 Windows 似乎更喜欢旧驱动程序而不是新驱动程序。我最终找到了一种排序方法。

The Device Manager contains 'ghost' drivers that need to be deleted (if you have the same problem as I). To see them requires setting a variable in the registry, restarting and then deleting the likely redundant drivers.

设备管理器包含需要删除的“幽灵”驱动程序(如果您遇到与我相同的问题)。要查看它们需要在注册表中设置一个变量,重新启动然后删除可能的冗余驱动程序。

Open the Device Manager from the command line use devmgmt.msc There are other ways, but this is easiest to describe. Currently it shows only 'current' drivers.

从命令行打开设备管理器使用 devmgmt.msc 还有其他方法,但这是最容易描述的。目前它只显示“当前”驱动程序。

Open the System Properties box. Via Command line use sysdm.cpl

打开系统属性框。通过命令行使用 sysdm.cpl

** Be aware that playing with area of your computer can break it. Back away if you are at all unsure of this. **

** 请注意,玩电脑的区域可能会破坏它。如果您对此完全不确定,请退后。**

  1. Open the Advanced tab, click Environmental Variables.
  2. Under System Variables, click New.
  3. Enter variable name devmgr_show_nonpresent_devices, under value enter 1.
  4. Restart your computer.
  1. 打开高级选项卡,单击环境变量。
  2. 在系统变量下,单击新建。
  3. 输入变量名称 devmgr_show_nonpresent_devices,在值下输入 1。
  4. 重启你的电脑。

Re-open the Device Manager, under view click Show Hidden Devices.

重新打开设备管理器,在视图下单击显示隐藏的设备。

From here delete what you think are the problems then follow the advise you will have read elsewhere. On two seperate computers I have done this and found all I needed to do following this was download and install the standard google drivers as per user3079537's answer above. Good luck.

从这里删除您认为存在的问题,然后按照您将在别处阅读的建议进行操作。在两台单独的计算机上,我已经完成了此操作,发现在此之后我需要做的就是按照上面 user3079537 的回答下载并安装标准的谷歌驱动程序。祝你好运。

ref: http://www.petri.co.il/removing-old-drivers-from-vista-and-windows7.htm#

参考:http: //www.petri.co.il/removing-old-drivers-from-vista-and-windows7.htm#

回答by Alex Kapustian

You should install Google Drivers from: http://developer.android.com/sdk/win-usb.html#topThat works for me every time

您应该从以下位置安装 Google 驱动程序:http: //developer.android.com/sdk/win-usb.html#top每次都对我有用

回答by Pascal Carmoni

Nexus 5 with Win7 x64

带有 Win7 x64 的 Nexus 5

-USB computer connection : Uncheck MTP and PTP

-USB 计算机连接:取消选中 MTP 和 PTP

-Use a 2.0 USB port.

- 使用 2.0 USB 端口。

-Try to use the original USB cable.

- 尝试使用原装 USB 电缆。

Now device manager will detect nexus 5 as an androide device with ADB driver.

现在设备管理器会将 nexus 5 检测为带有 ADB 驱动程序的 androide 设备。