gpt4 book ai didi

adb - 如何解决这个 adb 服务器版本与 android 中的这个客户端错误不匹配?

转载 作者:行者123 更新时间:2023-12-03 16:29:28 32 4
gpt4 key购买 nike

adb server version (39) doesn't match this client (40); killing...
could not read ok from ADB Server
* failed to start daemon
error: cannot connect to daemon
adb: error: failed to get feature set: protocol fault (couldn't read status): Connection reset by peer
* daemon not running; starting now at tcp:5037
* daemon started successfully
- waiting for device -
error: protocol fault (couldn't read status): Connection reset by peer

最佳答案

我在运行 adb devices 时遇到同样的问题命令。

adb devices
List of devices attached
adb server version (36) doesn't match this client (40); killing...
* daemon started successfully
2322dc3d device
我运行命令 which adb这给了我上一个命令正在使用的 adb 的位置,在我的例子中输出是:
which adb
/usr/bin/adb
然后我跑了 whereis adb命令给了我 adb 的位置:
whereis adb
adb: /usr/bin/adb /home/arefin/Android/Sdk/platform-tools/adb
/usr/share/man/man1/adb.1.gz
我通过从 /usr/bin 移动 adb 来解决这个问题带有 mv 的目录命令:(这意味着这没有用,因此而不是删除只是放在桌面上),
/usr/bin$ `sudo mv adb /home/arefin/Desktop/`
之后我执行了这个命令 adb kill-server然后运行 ​​ adb devices .这次我发现一切都很好。
我的Android开发相关路径在 $HOME/.profile文件如下:
export ANDROID_HOME=/home/arefin/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$JAVA_HOME/bin

关于adb - 如何解决这个 adb 服务器版本与 android 中的这个客户端错误不匹配?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52443813/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com