---
title: "adb server is out of date. killing..."
author: "noobjava"
date: "2013-07-24T14:44:45Z"
tags: []
categories: ["移动开发"]
slug: "adb-server-is-out-of-date-killing"
draft: false
lastmod: "2013-07-24T14:44:45Z"
id: 1912663
url: "https://noobjava.iteye.com/blog/1912663"
---

1:今天调试android的时候发现一个诡异的问题

1

2

3

4

`C:\Users\xxxx>adb start-server`

`adb server is out of date.  killing...`

`ADB server didn't ACK`

`* failed to start daemon *`

究其源就是adb server没启动

到stackoverflow上查了一下 经过分析整理如下：

1

2

`C:\Users\xxxx>adb nodaemon server`

`cannot bind 'tcp:5037'`

原来adb server 端口绑定失败

继续查看到底是哪个端口给占用了

1

2

3

4

5

6

`C:\Users\xxxxxx>netstat` `-ano | findstr "5037"`

`TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4628`

`TCP    127.0.0.1:5037         127.0.0.1:1085         TIME_WAIT       0`

`TCP    127.0.0.1:5037         127.0.0.1:1086         TIME_WAIT       0`

`TCP    127.0.0.1:5037         127.0.0.1:1096         TIME_WAIT       0`

`TCP    127.0.0.1:5037         127.0.0.1:1097         TIME_WAIT       0`

原来被4628这个进程占用了端口，打开任务管理器，杀掉4628这个进程。（可以在任务管理器菜单，查看-&gt;选择列中勾选（PID）进程标识符）