问题描述
尝试在启动 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:
我阅读了 stackoverflow 上的这个答案 来运行这个命令 killall -9 adb
so我做了,然后它说要更改 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服务器没有确认“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!