我目前在使用ADB和Debian Stretch时遇到一些问题。每当我发出ADB命令时,我都会收到以下消息:
> dput(test)
structure(list(time = structure(c(1514229003.91212, 1514229603.61297,
1514230204.14629, 1514230804.81938, 1514231404.36784, 1514232003.73393,
1514232604.17933, 1514233204.00143, 1514233804.68755, 1514234404.15599,
1514235003.99419, 1514235604.68204, 1514236204.18828, 1514236803.66526,
1514237404.0434, 1514238004.40609, 1514238604.02003, 1514239203.42238,
1514239804.19495, 1514240403.15927, 1514241003.87092, 1514241603.93167,
1514242203.77223, 1514242803.66758, 1514243403.33705, 1514244003.25017,
1514244604.05367, 1514245203.7921, 1514245803.2651, 1514246403.63888,
1514247004.02684, 1514247604.04009, 1514248203.99929, 1514248804.07401,
1514249404.11004, 1514250003.74613, 1514250603.88962, 1514251204.19115,
1514251804.06932, 1514252403.94181), class = c("POSIXct", "POSIXt"
), tzone = "EST"), id = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2), level = c(81, 81, 81, 73, 70, 70, 65, 62,
61, 60, 60, 60, 95, 95, 95, 94, 92, 90, 81, 79, 100, 100, 100,
90, 85, 75, 65, 54, 32, 11, 92, 92, 91, 90, 90, 81, 79, 99, 96,
96)), .Names = c("time", "id", "level"), class = c("data.table",
"data.frame"), row.names = c(NA, -40L), .internal.selfref = <pointer: 0x102010778>)
通常情况下,当ADB服务器重新启动时,这不会导致2秒延迟以外的任何问题,但是当我使用$ adb root
adb server version (39) doesn't match this client (36); killing...
* daemon started successfully *
时,连接偶尔会丢失,这很烦人。请注意,这与其他问题such as this one不同,因为服务器版本大于客户端版本。
答案 0 :(得分:4)
这个问题是由于我在我的机器上安装了两次ADB引起的。一旦进入我的主目录(由Android Studio使用),再次在/usr/bin/adb
,因为我从aptitude安装了android-sdk
包。由于Debian在程序包更新时往往有点慢,命令行中的adb
在/usr/bin/adb
调用旧版本而不是我的主文件夹中的较新版本。运行以下问题解决了这个问题:
sudo apt-get remove adb