Android ADB 服务器未确认
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26217055/
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 server didn't Acknowledge
提问by ydmpcn
I could not run the android application never on my laptop. Eclipse gives same error constantly, that is "ADB server didn't Acknowledge"
我永远无法在我的笔记本电脑上运行 android 应用程序。Eclipse 不断给出相同的错误,即“ADB 服务器未确认”
I've tried everything, restart adb from ddms view, from command line (kill-server, start-server), from task manager and restart eclipse. When I manage to start adb server and re-open eclipse, as soon as I run the android application, same error comes to console; ADB server didn't ack.
我已经尝试了一切,从 ddms 视图,从命令行(kill-server,start-server),从任务管理器重新启动 adb 并重新启动 eclipse。当我设法启动 adb 服务器并重新打开 eclipse 时,只要我运行 android 应用程序,控制台就会出现同样的错误;ADB 服务器没有确认。
Could you give an idea except restarting adb
除了重新启动 adb 之外,你能给出一个想法吗?
回答by Maveňツ
Killing the process adb.exein the TASK MANAGER (to open task manager CTRL+Shift+Esc) solves it in my case. After killing it run adb start-serveror adb devicesand you should be fine.
在我的情况下,杀死任务管理器中的进程adb.exe(打开任务管理器CTRL+ Shift+ Esc)可以解决这个问题。杀死它后运行adb start-server或adb devices,你应该没问题。
Incase if that doesn't work
如果这不起作用
We can solve this issue so easily.
我们可以很容易地解决这个问题。
- Open command prompt,
cd <platform-tools directory>
- Run command
adb kill-server
- Open Windows Task manager and check whether
adb
is still running. If it is, just killadb.exe
- Run command
adb start-server
in command prompt
- 打开命令提示符,
cd <platform-tools directory>
- 运行命令
adb kill-server
- 打开 Windows 任务管理器并检查是否
adb
仍在运行。如果是,就杀了adb.exe
adb start-server
在命令提示符下运行命令
A way bit difficult approach
有点困难的方法
Command Prompt (cmd.exe)
命令提示符 (cmd.exe)
netstat -aon|findstr 5037
find process id of 0.0.0.0
找到 0.0.0.0 的进程 ID
make sure it's adb.exe
确保它是 adb.exe
tasklist|findstr 1980
kill this process
杀死这个进程
taskkill /f /t /im adb.exe
get ADB back to normal
让亚行恢复正常
for more details check it from here
有关更多详细信息,请从此处查看
回答by Reefwing
For Mac users, what worked for me was:
对于 Mac 用户,对我有用的是:
- Open Activity Monitor (equivalent to Windows task manager)
- Kill the adb task
- Restart adb
- 打开活动监视器(相当于 Windows 任务管理器)
- 杀死 adb 任务
- 重启亚行
回答by Dong Thang
Please kill adb by command:
请通过命令杀死 adb:
taskkill /f /im "adb.exe"
then, re-start it with command:
然后,使用命令重新启动它:
adb start-server
It work very fine for me :)
它对我来说非常好:)
回答by Joseph Johnson
Look for typos in the ~/.android/adb_usb.ini file. This problem can be caused if that file gets messed up.
在 ~/.android/adb_usb.ini 文件中查找拼写错误。如果该文件被弄乱了,则可能会导致此问题。
回答by nam
In my pc, i use the command line taskkill /f /t /im wandoujia_daemon.exe (because adb.exe or bas_daemon.exe is not running in my task manager) And... the adb server is started succesfully
在我的电脑中,我使用命令行 taskkill /f /t /im wandoujia_daemon.exe(因为 adb.exe 或 bas_daemon.exe 未在我的任务管理器中运行)并且... adb 服务器已成功启动
回答by beginner1417
in my case i use the command line taskkill /f /t /im bas_deamon.exe
(because adb.exe was not started) and adb server is started successfully
在我的情况下,我使用命令行taskkill /f /t /im bas_deamon.exe
(因为 adb.exe 未启动)并且 adb 服务器已成功启动
回答by Manoj Saini
Kill ADB from command prompt. Kill eclipse also from command prompt. Start adb server from there using [adb start-server] And start again.
从命令提示符杀死 ADB。也可以从命令提示符处杀死 eclipse。使用 [ adb start-server]从那里启动 adb server并重新启动。
回答by DeltaCap019
In addition to @maveňツsolution.
除了@maveňツsolution。
Actually we have to kill the process using this address 0.0.0.0:0
, that's why for most of the people killing adb.exe
from task manager was working (In my case I was not able to see it even Task Manager).
实际上,我们必须使用这个地址0.0.0.0:0
来终止进程,这就是为什么大多数adb.exe
从任务管理器杀死的人都在工作(在我的情况下,我什至无法看到它甚至任务管理器)。
Following the @maveňツsteps I find out that some other process was using this address.
I went ahead to kill it, it gave me ACCESS DENIED
as Error
.
在@maveňツsteps 之后,我发现其他一些进程正在使用这个地址。我继续杀它,它给了我ACCESS DENIED
作为Error
。
So using the tasklist|findstr ****
i find out the name of the process and killed it from task manager.
所以使用tasklist|findstr ****
i 找出进程的名称并从任务管理器中杀死它。
There after it started working.
在那里开始工作之后。
In my case bas_daemon
and bas_helper
were using this address both of which corresponds to MOBOROBO
在我的情况下,bas_daemon
并且bas_helper
正在使用这个地址,这两个地址都对应于MOBOROBO
回答by Sean
I believed you've checked the port number, and restart adb. But have you install proper android driver on your computer. Some universal android driver may not work on your computer, you'd better installed the driver provided by your mobile manufacturer, if you can't find the driver on manufacturer's website, consider download its software suit, it may include the driver.
我相信您已经检查了端口号,并重新启动了 adb。但是你有没有在你的电脑上安装合适的安卓驱动程序。某些通用android驱动程序可能无法在您的计算机上运行,您最好安装您的手机制造商提供的驱动程序,如果您在制造商的网站上找不到驱动程序,请考虑下载其软件套装,它可能包含驱动程序。