无法在 Android 上启动项目:
adb server version (40) doesn't match this client (41); killing...
could not read OK from ADB Server
* failed to start daemon
adb.exe: failed to check server version: cannot connect to daemon
Run Code Online (Sandbox Code Playgroud)
我已经安装了 android 平台开发工具,但即使将 Genymotion 设置更改为使用我的 android 软件开发工具包而不是其默认的 android 工具,它仍然无法工作
我知道这个问题已经被问了 1000 次,但我在 Stackoverflow 和其他网站上找到的每个答案都是一样的:(1) 用户正在使用 Genymotion,(2) 用户在 Windows 中使用 HTC Sync。
我两者都不做。我目前在 OS/X (10.11.6) 中运行,并使用运行 Android 6.0 的 Moto X(第二代)手机。
很多次(不是每次)当我运行“adb logcat”时,我得到
adb server is out of date. killing...
* daemon started successfully *
Run Code Online (Sandbox Code Playgroud)
这是一个问题,因为我正在尝试使用 gradlew 运行一些自动化测试(因为使用“adb shell am instrument”不会产生我需要的 JUnit 样式报告)并收集日志......但是每次我启动“adb logcat” , gradlew 中的某些东西(显然)尝试启动 adb,然后杀死所有正在运行的 adb 实例。
有没有人在不使用 Genymotion/HTCSync/Windows 的情况下看到这个问题并知道解决方案?
谢谢!
我遇到了这个问题:在Android模拟器(Nexus 5)中运行命令react-native run-android时,adb服务器版本(32)与此客户端(36)不匹配.在我将Android版本(SDK,构建工具,所有内容)更新到7.0之前,一切都很好,以运行最新版本的RN 0.32.在我有一个0.25的空闲项目之前,正如我说的那样工作正常.
我安装了ganymotion,其他解决方案与genymotion相关,但没有奏效.现在我完全删除了genymotion并重新安装了android 7.0中的所有内容.仍然是同样的问题.
我看到一些修复程序在Windows中安装ADB 1.0.36.我无法在我的ubuntu上更新我的abd(现在是版本1.0.32).
我还能尝试什么?
非常感谢.
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
Run Code Online (Sandbox Code Playgroud)