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 4月 4 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