eclipse adb devices - 没有连接设备
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28937483/
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
adb devices - No device attached
提问by Vladi
I need to see my Nexus 7 on the adb devices list. Although I enable the "" USB debugging "" on the device, but when I try to see the "" adb devices "", then no device is attached?
我需要在 adb 设备列表中查看我的 Nexus 7。虽然我在设备上启用了“”USB调试“”,但是当我尝试查看“”adb devices“”时,没有连接设备?
回答by Skizo-oz??S
- First you have to download Google USB Driver
- Connect your Android-powered device to your computer's USB port.
- Right-click on
Computer
from your desktop orWindows Explorer
, and select Manage. - Select
Devices
in the left pane. - Locate and expand
Other
device in the right pane. - Right-click the device name and
select Update
Driver Software. This will launch theHardware Update Wizard
. - Select
Browse
my computer for driver software and clickNext
. ClickBrowse
and locate theUSB driver
folder. (The Google USB Driver is located in \extras\google\usb_driver.) - Click
Next
to install the driver.
- 首先,您必须下载Google USB 驱动程序
- 将 Android 设备连接到计算机的 USB 端口。
- 右键单击
Computer
桌面上的 或Windows Explorer
,然后选择管理。 Devices
在左窗格中选择。Other
在右侧窗格中找到并展开设备。- 右键单击设备名称和
select Update
驱动程序软件。这将启动Hardware Update Wizard
. Browse
为驱动程序软件选择我的计算机,然后单击Next
。单击Browse
并找到该USB driver
文件夹。(Google USB 驱动程序位于 \extras\google\usb_driver 中。)- 单击
Next
以安装驱动程序。
回答by Android Device
I know that you've already received right answer. But for those who meet the same error I advice to look for "Revoke USB debugging authorizations" in Developers options on your device. Sometimes it really helps! Especially if everything worked fine before in another OS.
我知道你已经收到了正确的答案。但是对于那些遇到相同错误的人,我建议您在设备的开发人员选项中查找“撤销 USB 调试授权”。有时真的很有帮助!特别是如果之前在另一个操作系统中一切正常。
回答by Vladi
Case study (on my WXP SP3... yes I still use it..), phone AllView V2ViperE, Android version 5.1: If you continue to have no devices attached (although Android Composite ADB Interface is OK in Device Manager.. I mean without the yellow "!"), the root cause could be the adb server.. Workaround: download a new adb release (e.g: http://www.androidro.ro/descarca-si-instaleaza-driveri-adb-pentru-telefoanele-allview/).. I choose V1 Viper S.. unrar and run adb-setup-1.4.2.exe which will create the C:\adb\ directory:
案例研究(在我的 WXP SP3 上......是的,我仍然使用它......),电话 AllView V2ViperE,Android 5.1 版:如果你仍然没有连接任何设备(尽管 Android Composite ADB 接口在设备管理器中是可以的......我的意思是如果没有黄色“!”),根本原因可能是 adb 服务器。解决方法:下载新的 adb 版本(例如:http: //www.androidro.ro/descarca-si-instaleaza-driveri-adb-pentru- telefoanele-allview/.. 我选择 V1 Viper S.. unrar 并运行 adb-setup-1.4.2.exe 这将创建 C:\adb\ 目录:
C:\adb>dir
Directory of C:\adb
12/11/2016 03:23 PM <DIR> .
12/11/2016 03:23 PM <DIR> ..
10/19/2014 02:18 AM 1,009,664 adb.exe
10/19/2014 02:18 AM 96,256 AdbWinApi.dll
10/19/2014 02:18 AM 60,928 AdbWinUsbApi.dll
10/19/2014 02:18 AM 196,608 fastboot.exe
4 File(s) 1,363,456 bytes
2 Dir(s) 6,116,716,544 bytes free
C:\adb>
Now just run:
现在只需运行:
C:\adb>.\adb devices -l
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
DQBMWGSC9HT8CQ7D unauthorized
//V. in this stage allow USB debugging on the phone, then just run again:
C:\adb>.\adb devices -l
List of devices attached
DQBMWGSC9HT8CQ7D device product:V2_Viper_E model:V2_Viper_E device:V2_Viper_E
C:\adb>.\adb -d shell
shell@V2_Viper_E:/ $
Eclipse/LogCat also come alive.. Voila.. Vive la Roumanie.. Now I'm struggling with ndk debugging..
Eclipse/LogCat 也活跃起来了.. 瞧.. Vive la Roumanie.. 现在我正在为 ndk 调试而苦苦挣扎..