The connection to adb is down, and a severe error has occured.

本文介绍了解决Android开发中遇到的ADB连接错误的具体步骤。通过排查端口占用情况、使用任务管理器结束进程以及重启ADB服务等操作,最终解决了Eclipse中的连接问题。

今天安装安卓的开发环境,写了一个helloworld,运行时发现出现错误:
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at ‘<–此处显示adb.exe的全路径–>’ and can be executed.

百度一下,发现是adb的端口被占用了
cmd netstat -ano|findstr “5037” #5037是adb的默认端口
返回:TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 10646
再tasklist 发现10646是kadb.exe
对就是这货占用了端口,百度发现它是属于酷狗音乐,taskkill它

再运行又出现了错误(没记下来)
cd 到adb的路径(XX\adt-bundle-windows-x86-20130917\sdk\platform-tools)
adb.exe kill-server
然后
adb.exe start-server
显示success
重启eclipse
问题解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值