Android 如何修复:使用 ADB.exe 找不到错误设备

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

How to fix: Error device not found with ADB.exe

android

提问by MethodManX

In cmd when I try to do the command:

在 cmd 中,当我尝试执行命令时:

adb shell

adb shell

it shows device not found error. Can someone help me please. It'll be appreciated.

它显示设备未找到错误。有人能帮助我吗。将不胜感激。

回答by rmtheis

Don't forget to go to your device and enable Settings->Developer Options->USB debugging.

不要忘记转到您的设备并启用设置->开发人员选项->USB调试。

回答by Guaido79

It depends on windows system but usually:

这取决于 Windows 系统,但通常:

  1. you go to system properties
  2. look at hardware devices
  3. Right click on the yellow(has to be yellow if it's driver problem) iconrepresenting your mobile device
  4. select property
  5. Then go on the driver tab
  6. select update driver
  7. choose the bottom selection find on local computer
  8. then choose manually
  9. From the windows opened look for driver diskthe bottom right button
  10. Choose the driver from the folder <sdk>\extras\google\usb_driver\i386(or amd64 for and).
  11. Remember to uncheck the show only compatible hardware.
  12. Then choose the driver
  13. When windows warn your about possible incompatibility go on.
  1. 你去系统属性
  2. 查看硬件设备
  3. 右键单击代表您的移动设备的黄色(如果是驱动程序问题,则必须为黄色)图标
  4. 选择属性
  5. 然后进入驱动程序选项卡
  6. 选择更新驱动
  7. 选择在本地计算机上查找的底部选择
  8. 然后手动选择
  9. 从打开的窗口中查找驱动程序磁盘右下角的按钮
  10. 从文件夹中选择驱动程序<sdk>\extras\google\usb_driver\i386(或 amd64 for and)。
  11. 请记住取消选中仅显示兼容硬件
  12. 然后选择驱动
  13. 当 Windows 警告您可能不兼容时,请继续。

For my mobile it works, but depend on your mobile if it work or not.

对于我的手机,它可以工作,但是否工作取决于您的手机。

Hope this help, bye.

希望这有帮助,再见。

回答by ChiragMS

Try any of the following solutions. I get errors with adb every now and then. And one of the following always works.

尝试以下任何一种解决方案。我时不时地遇到 adb 错误。并且以下之一始终有效。

Solution 1
Open command prompt as administrator and enter
1. adb kill-server
2. adb start-server

解决方案 1
以管理员身份打开命令提示符并输入
1. adb kill-server
2.adb start-server

Solution 2
Install drivers for you phone if you're not testing on emulator.

解决方案 2
如果您不在模拟器上进行测试,请为您的手机安装驱动程序。

Solution 3
Open android sdk manager and install "Google USB Driver" from extras folder. (attached screenshot)

解决方案 3
打开 android sdk 管理器并从 extras 文件夹安装“Google USB 驱动程序”。(附截图)

Android SDK Google USB Driver missing

缺少 Android SDK Google USB 驱动程序

Solution 4
Go to settings > Developer Options > Enable USB Debugging.
(If you don't see Developer Options, Go to Settings > About Phone > Keep tapping "Build number" until it says "You're a developer!"

解决方案 4
转到设置 > 开发人员选项 > 启用 USB 调试。
(如果您没有看到开发人员选项,请转到设置 > 关于手机 > 继续点击“内部版本号”,直到它显示“您是开发人员!”

Enable USB Debugging

启用 USB 调试

回答by Tai Tran

If you installed Eclipse have Android SDK, go to DDMS. If the list device display "?????????"

如果您安装的 Eclipse 有 Android SDK,请转至 DDMS。如果列表设备显示“?????????”

you do adb kill-serverand then adb start-server.

你做adb kill-server然后adb start-server

Please make sure you install USB driver and enable debug mode.

请确保您已安装 USB 驱动程序并启用调试模式。

回答by liamvictor

Another issue here is that you likely need to turn off "connect as media device" to be able to connect with adb.

这里的另一个问题是您可能需要关闭“作为媒体设备连接”才能与 adb 连接。

回答by user6591924

On my G2 I had to select PTP instead of MTP mode to get the connection to work.

在我的 G2 上,我必须选择 PTP 而不是 MTP 模式才能使连接正常工作。

回答by Mzhda Saeed

I solved:

我解决了:

Just turn off USB debugging and re-enable debugging it immediately

只需关闭USB调试并立即重新启用调试即可

回答by vadi taslim

For me, I have to Revoke USB debugging authorizationsin Developer Options. Here is the steps:

对我来说,我必须Revoke USB debugging authorizations在开发人员选项中。以下是步骤:

  1. Turn off USB Debugging,
  2. Revoke USB debugging authorizations,
  3. Plug the cable back in,
  4. Turn on USB Debugging
  1. 关掉USB Debugging
  2. 撤销USB调试授权,
  3. 重新插入电缆,
  4. 打开 USB Debugging

回答by Sarah Northway

I had this problem suddenly crop up in Windows 7 with my Nexus One - somehow the USB drivers had been uninstalled. I ran android-sdk/SDK Manager.exe, checked Extras/Google USB Driver and installed it. Then I unplugged the phone and plugged it back in, and ran "adb devices" to confirm the phone was attached.

我的 Nexus One 在 Windows 7 中突然出现了这个问题——不知何故,USB 驱动程序已被卸载。我运行了 android-sdk/SDK Manager.exe,检查了 Extras/Google USB Driver 并安装了它。然后我拔下电话并重新插入,并运行“adb devices”以确认电话已连接。

This doesn't work for all phones, just the ones listed here: http://developer.android.com/sdk/win-usb.html

这不适用于所有手机,仅适用于此处列出的手机:http: //developer.android.com/sdk/win-usb.html

回答by Correo

Developer options

开发者选项

  • USB Debug
  • USB调试

if you can not see developer option, go to about. build version and click build version until developer options in unlock.

如果您看不到开发人员选项,请转到 about。构建版本并单击构建版本,直到解锁开发人员选项。