ADB devices 连接genymotion 出错cannot bind 'tcp:5037': Address already in use

ADB devices genymotion 出错cannot bind ‘tcp:5037’: Address already in use

$adb devices
List of devices attached
adb server is out of date.  killing...
cannot bind 'tcp:5037': Address already in use
ADB server didn't ACK
* failed to start daemon *
error: 
error: 

问题原因

gnymotion 与 系统adb 调用的不是同一个sdk中的adb.所以个人猜测可能是其中一个启动了一个adb,之后再次启动的时候就提示端口占用了.(两个adb使用了同一端口)

解决方案

1.查看自己系统adb的路径

$which adb
/usr/bin/adb
$ ls /usr/bin/adb -l
lrwxrwxrwx 1 root root 37 44 22:31 /usr/bin/adb -> ../lib/android-sdk/platform-tools/adb

2.设置genymotion的sdk路径为上述的sdk路径.

打开genymotin->Settings->ADB->Use custom Android SDK tools->Browse->选择目标sdk(在这里我需要选择/usr/lib/android-sdk)

3.重启genymotion模拟器,再用adb就没有错误了.

$adb devices
List of devices attached
192.168.57.101:5555 device

使用Markdown编辑器写博客真不错

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值