ADB 和 Genymotion 错误:“adb 服务器已过期.杀戮...无法绑定'tcp:5037' ADB 服务器没有确认“"

ADB and Genymotion error: quot;adb server is out of date. killing... cannot bind #39;tcp:5037#39; ADB server didn#39;t ACKquot;(ADB 和 Genymotion 错误:“adb 服务器已过期.杀戮...无法绑定tcp:5037 ADB 服务器没有确认“)
本文介绍了ADB 和 Genymotion 错误:“adb 服务器已过期.杀戮...无法绑定'tcp:5037' ADB 服务器没有确认“"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在启动 genymotion 模拟器后尝试从终​​端使用 adb shell,我收到此错误:

Trying to use adb shell from terminal after starting genymotion emulator and I get this error:

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

我在 this answer on stackoverflow 中阅读以运行此命令 killall -9 adb 所以我做了,然后它说要更改 genymotion 设置以使用自定义 Android SDK 工具,如下所示:

I read in this answer on stackoverflow to run this command killall -9 adbso I did and then it says to change genymotion settings to use custom Android SDK tools as the following:

正如您在上面的屏幕截图中看到的那样,我也这样做了,但我仍然收到相同的错误消息.

Also did that as you can see in the above screenshot but I still keep getting the same error message.

每当我尝试运行 adb shell 时,我的 android Studio ADB 日志都会显示以下消息:

My android Studio ADB logs give the following message whenever I try to run adb shell:

 DeviceMonitor: Adb connection Error:EOF
 DeviceMonitor: Connection attempts: 1

我什至尝试创建一个新的虚拟设备并使用它,但没有任何成功.

I even tried creating a new virtual device and using it without any success.

推荐答案

如果你有 1.0.31 或更低版本,请将 adb 更新到 1.0.32

update the adb to 1.0.32 if you have 1.0.31 or lower

adb version
Android Debug Bridge version 1.0.31
wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
sudo mv adb /usr/bin/adb
sudo chmod +x /usr/bin/adb
adb version
Android Debug Bridge version 1.0.32

这篇关于ADB 和 Genymotion 错误:“adb 服务器已过期.杀戮...无法绑定'tcp:5037' ADB 服务器没有确认“"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)