的Nexus 7不是通过USB可见通过" ADB设备"从Windows 7 64位系统 [英] Nexus 7 not visible over USB via "adb devices" from Windows 7 x64

查看:142
本文介绍了的Nexus 7不是通过USB可见通过" ADB设备"从Windows 7 64位系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也做了明显的 - USB驱动程序,从最新的Andr​​oid SDK安装,和USB调试已打开的平板电脑

I have done the obvious -- the USB driver was installed from the latest Android SDK, and USB debugging was turned on in the tablet.

的Nexus  7 的连接,该设备显示在Windows的Device管理系统为Android手机/Android的复合ADB设备,以显示驱动程序版本6.0.0.0的属性,所以正确的驱动程序安装并正常工作。

When the Nexus 7 is connected, the device shows up in the Windows Device Manager as "Android Phone" / "Android Composite ADB Device", with the properties showing driver version 6.0.0.0, so the correct driver is installed and working.

这也证明了该设备在USB调试模式,因为如果它是不是显示在Windows下的便携设备/的Nexus 7。

This also proves the device is in USB debugging mode, because if it is not it shows up in Windows under "Portable Devices" / "Nexus 7".

问题是,亚行的设备表示没有设备和的Eclipse 也(不奇怪)也没有提供了Nexus 7为硬件设备上运行的应用程序。

The problem is that "adb devices" shows no devices, and Eclipse also (not surprisingly) also does not offer the Nexus 7 as a hardware device to run an app on.

我已经没有效果重启这两个设备。

I have rebooted both devices without effect.

唯一的调试,我可以找出是让 ADB_TRACE =所有,但是这告诉我什么:

The only debugging I can figure out is enable ADB_TRACE=all, but this tells me nothing:

mkh@MULE ~/AppData/Local/Android/android-sdk/platform-tools
$ export ADB_TRACE=all

mkh@MULE ~/AppData/Local/Android/android-sdk/platform-tools
$ adb devices
system/core/adb/adb.c::main():Handling commandline()
system/core/adb/adb_client.c::adb_query():adb_query: host:devices
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: port 5037 type tcp => fd 100
system/core/adb/transport.c::writex():writex: fd=100 len=4: 30303063 000c
system/core/adb/transport.c::writex():writex: fd=100 len=12: 686f73743a76657273696f6e host:version
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
4f4b4159 OKAY
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 100
system/core/adb/adb_client.c::adb_connect():adb_connect: service host:devices
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
30303034 0004
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
30303164 001d
system/core/adb/sysdeps_win32.c::adb_close():adb_close: 100(lo-client:5037)
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:devices
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: port 5037 type tcp => fd 101
system/core/adb/transport.c::writex():writex: fd=101 len=4: 30303063 000c
system/core/adb/transport.c::writex():writex: fd=101 len=12: 686f73743a64657669636573 host:devices
system/core/adb/transport.c::readx():readx: fd=101 wanted=4
system/core/adb/transport.c::readx():readx: fd=101 wanted=4 got=4
4f4b4159 OKAY
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 101
system/core/adb/adb_client.c::adb_connect():adb_connect: return fd 101
system/core/adb/transport.c::readx():readx: fd=101 wanted=4
system/core/adb/transport.c::readx():readx: fd=101 wanted=4 got=4
30303030 0000
system/core/adb/transport.c::readx():readx: fd=101 wanted=0
system/core/adb/transport.c::readx():readx: fd=101 wanted=0 got=0

system/core/adb/sysdeps_win32.c::adb_close():adb_close: 101(lo-client:5037)
List of devices attached
***NOTHING SHOWN*****

我是什么做错了吗?

What am I doing wrong?

推荐答案

在了Nexus 7是否插有一个永久通知,指出连接AS /媒体设备(MTP)。在这种状态下 ADB设备将不显示Nexus的,毫无疑问或任何其他设备。不完全是显而易见的,但如果你选择第二个选项相机(PTP)的设备可用于调试(的教训是忽视了摄像头,并专注于协议PTP)。

When the Nexus 7 is plugged in there is a persistent notification that indicates "CONNECT AS / Media Device (MTP)". In this state adb devices will not show the Nexus, or undoubtedly any other device. Not exactly obvious, but if you select the second option "Camera (PTP)" the device is available for debugging (the lesson is ignore the camera, and focus on the protocol PTP).

这个配置是持久的,而我猜测,以崭新的设备,直到告知,否则它将连接为MTP。

This configuration is persistent, and I'm guessing that with a brand new device it will connect as MTP until told otherwise.

由于 @Ciaran加拉格尔 设置 - >存储 - >左上选项(电脑USB连接)龙头 - >选择MTP

这篇关于的Nexus 7不是通过USB可见通过" ADB设备"从Windows 7 64位系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆