---
title: "adb server is out of date. killing..."
author: "WilliamLiu"
date: "2013-04-25T09:56:46Z"
tags: []
categories: ["移动开发"]
slug: "adb-server-is-out-of-date-killing"
draft: false
lastmod: "2013-04-25T09:55:50Z"
id: 1853287
url: "https://williamliu.iteye.com/blog/1853287"
---

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

```
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上查了一下 经过分析整理如下：

```
C:\Users\xxxx>adb nodaemon server
cannot bind 'tcp:5037'
```

 原来adb server 端口绑定失败

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

```
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）进程标识符）