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 服务器没有确认“)
问题描述
在启动 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 adb
so 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 服务器没有确认“"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:ADB 和 Genymotion 错误:“adb 服务器已过期.杀戮...无法绑定'tcp:5037' ADB 服务器没有确认“"
基础教程推荐
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01