---
title: "android eclipse中经常遇到的the connection to adb is down and...<31>"
author: "ZacMa"
date: "2014-03-03T15:41:13Z"
tags: []
categories: ["编程语言"]
slug: "android-eclipse-the-connection-to-adb-is-down-and-31"
draft: false
lastmod: "2014-03-03T15:41:13Z"
id: 2024960
url: "https://ZacMa.iteye.com/blog/2024960"
---

android ecplise开发中经常遇到的 
the connection to adb is down and a severe error has occured 错误，经常是adb出现问题，监听端口有问题，按照下面两篇博客解决：
<http://blog.csdn.net/beiminglei/article/details/7740685>
这篇博客讲解如何解决这个问题，但是找进程号的时候有个问题，例如端口为5037的进程，用netstat -a | findstr "5037"查找起来特别的慢，要用“netstat -noa | findstr "5037"” 这样就快很多，找到进程再借助任务管理器杀掉

<http://jingyan.baidu.com/article/84b4f5653386d260f7da3250.html>
这篇文章，可以直接在windows终端里面用命令杀掉进程；

再使用时候还遇到一个问题，进程杀死后立刻重启，例如5037端口被反复占用，这时候可以先把手机拔掉和电脑的连接，再杀死运行，再连接手机即可