Android Studio - Lollipop、ADB 和Genymotion 问题:设备不会出现."adb 服务器已过时.杀……" [英] Android Studio - Lollipop, ADB, & Genymotion issues: Devices won't show up. "adb server is out of date. killing..."

查看:41
本文介绍了Android Studio - Lollipop、ADB 和Genymotion 问题:设备不会出现."adb 服务器已过时.杀……"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新 (11/10/14):Genymotion 发布了 2.3.1,修复了这个问题.https://cloud.genymotion.com/page/changelog/#231强>

更新(2014 年 10 月 21 日):Genymotion 回复了我的支持电子邮件,并指出以下 @plackemacher 推荐的解决方案是目前建议的解决方案.他们知道这个问题.

Update (10/21/14): Genymotion replied to my support email and indicated the solution recommended by @plackemacher below is the suggested fix at the moment. They are aware of the issue.

自从升级到 Lollipop 后,我在使用 Genymotion 模拟器时遇到了 adb 问题.设备未显示在 Android Studio 中,我在尝试运行 adb devices 时也遇到以下错误:

Since upgrading to Lollipop, I'm having adb issues when using a Genymotion emulator. Devices don't show up in Android Studio, and I've also gotten the following error when trying to run adb devices:

$ adb devices

adb server is out of date.  killing...
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
error:

我不确定是因为 Lollipop 升级还是巧合.

I'm not sure if it's because of the Lollipop upgrade or coincidence.

编辑/更新:

根据 Chris Satton 的评论,我调查了是否有多个 adb 进程正在运行 (ps aux | grep adb),它看起来像是 Genymotion 冲突(?).它看起来包含自己的 adb 版本.

Per Chris Satton's comment, I investigated if multiple adb processes were running (ps aux | grep adb), and it looks like it's a Genymotion conflict(?). It looks to include its own version of adb.

greg 72550 0.0 0.0 611164 1508 ??下午 4:14
0:00.02/Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/tools/adb-s 192.168.56.102:5555 外壳

greg 72550 0.0 0.0 611164 1508 ?? S 4:14PM
0:00.02 /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/tools/adb -s 192.168.56.102:5555 shell

greg 72523 0.0 0.0 635956 2296 ??S 4:14PM 0:00.02 adb -P 5037 fork-server 服务器

greg 72523 0.0 0.0 635956 2296 ?? S 4:14PM 0:00.02 adb -P 5037 fork-server server

推荐答案

尝试运行:

killall -9 adb

这应该删除守护进程的所有运行痕迹

That should remove all running traces of the daemon

以下最佳解决方案

此问题可能是 adb 与最新版本的平台 SDK 不兼容.Genymotion 解决此问题的最佳解决方案是将 Genymotion 中的 Android SDK 设置为您所在的位置.这可以在设置"页面中找到.

This issue may be adb incompatibility with the newest version of the platform SDK. The best solution for this issue with Genymotion is to set the Android SDK within Genymotion to your location. This can be found within the Settings page.

这篇关于Android Studio - Lollipop、ADB 和Genymotion 问题:设备不会出现."adb 服务器已过时.杀……"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆