Android ADB-守护程序仍未运行 [英] Android ADB - Daemon still not running

查看:860
本文介绍了Android ADB-守护程序仍未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速说明:我在Android SDK的 platform-tools目录中。

Quick Note: I am in the Android SDK "platform-tools" directory.

我的问题似乎有点奇怪的是-每当我使用 adb启动服务器启动ADB时,都会得到以下信息:

My problem seems to be a bit of a weird one - Whenever I start ADB with adb start-server, I get the following:


  • *守护进程未运行。立即在端口5037上启动*

  • *守护程序已成功启动*

  • * deamon not running. starting it now on port 5037 *
  • * daemon started successfully *

嗯,太好了。它成功启动。现在我尝试使用 adb shell

Well, Great. It started successfully. Now I try using adb shell:


  • * deamon没有运行。现在在端口5037上启动它* 什么?我以为它已经开始...

  • ADB服务器未确认 c $ c>

  • *无法启动守护程序*

  • 错误:无法连接到守护程序

  • * deamon not running. starting it now on port 5037 * What??? I thought it already started...
  • ADB server didn't ACK
  • * failed to start daemon *
  • error: cannot connect to daemon

好吧,废话。因此,我打开任务管理器并杀死adb.exe。然后,我运行 adb shell (首先不运行 adb启动服务器)。
这次我得到:

Well, Crap. So I open Task Manager and kill adb.exe. Then I run adb shell (without running adb start-server first). This time I get:


  • *守护进程未运行。立即从5037开始*

  • *守护进程已成功启动*

  • **守护进程仍未运行**

  • 错误:无法连接到守护进程

  • * deamon not running. starting it now on 5037 *
  • * deamon started successfully *
  • ** deamon still not running **
  • error: cannot connect to deamon

因此,作为一个简短的摘要-这是我尝试过的操作:

So, As a brief summary - here is what I have tried:


  • 重启我的电脑

  • 重启我的手机

  • 执行 adb shell

  • 执行 adb启动服务器,然后执行 adb shell

  • 杀死ADB并执行 adb shell

  • 杀死ADB并执行 adb启动服务器,然后执行 adb shell

  • 重新安装手机的USB驱动程序

  • 正在检查端口5037,其他任何应用程序均未使用它,只有在启动守护程序时adb.exe才会使用它。

  • Rebooting my PC
  • Rebooting my Phone
  • Executing adb shell
  • Executing adb start-server and then executing adb shell
  • Killing ADB and Executing adb shell
  • Killing ADB and Executing adb start-server and then executing adb shell
  • Reinstalling my phone's USB Drivers
  • Checking port 5037, It is not in use by any other application, and only becomes used by adb.exe when I start the daemon.

我缺少明显的东西吗?请帮助我:P

Am I missing something obvious? Help me please :P

编辑:另一个问题的解决方案: https:/ /stackoverflow.com/a/29524143/2872279

Solution on another question: https://stackoverflow.com/a/29524143/2872279

推荐答案


  1. 检查您已经为您的Android设备安装了正确的USB驱动程序(它们应该包括ADB驱动程序或与ADB驱动程序一起下载)。

  1. Check that you have the correct USB drivers for your Android device installed (they should either include or be downloaded with an ADB driver).

如果尚未安装平台工具,您需要这样做。您可以从Android开发者网站获取副本: https://developer.android.com / studio / releases / platform-tools

If you haven't installed platform-tools, you need to do so. You can get a copy from the Android Developer's website: https://developer.android.com/studio/releases/platform-tools

如果该设置已经为您服务,并且最近已停止,请在Windows上-尝试重新安装驱动程序和/或检查设备是否真正被识别。您可以通过将 devmgmt.msc + R 或从命令提示符。

If this was already working for you and it has recently stopped, on Windows - try reinstalling the driver and/or checking that the device is actually recognised. You can do so by running devmgmt.msc with + R or from command prompt.

它可能只需要检查USB电缆是否完好就可以了-最好尝试将手机连接到另一台计算机或使用另一根USB电缆。这个问题比我想承认的要多得多。

It might be worth just checking that your USB cable is not damaged - ideally try connecting your phone to another computer or with another USB cable. This has been an issue more times than I would care to admit.

这篇关于Android ADB-守护程序仍未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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