当我运行时adb logcat什么也没有发生,但是当我在 adb shell 中运行它时,它就可以正常工作了。这些是输出:
eduardo@debian:~$ adb devices
List of devices attached
LGM250CE6PYLFQGU9P device
eduardo@debian:~$ adb -s LGM250CE6PYLFQGU9P logcat -t 1
eduardo@debian:~$ adb -s LGM250CE6PYLFQGU9P shell -t "logcat -t 1"
--------- beginning of main
09-12 20:52:09.511 380 380 I DisplayDevice: [Built-in Screen (type:0)] fps:1.987004,dur:1006.54,max:515.21,min:491.33
eduardo@debian:~$
Run Code Online (Sandbox Code Playgroud)
这是我的 adb 版本。
eduardo@debian:~$ adb --version
Android Debug Bridge version 1.0.40
Version 4986621
Installed as /home/eduardo/Android/Sdk/platform-tools/adb
Run Code Online (Sandbox Code Playgroud)
同样的行为发生在 Windows 和 Debian 上。
adb 或我的设备有问题吗?
我昨天在 Debian 和 Windows 上将平台工具从 28.0.0 升级到 28.0.1 时遇到了同样的问题。
通过查看您的Android Debug Bridge版本和问题的日期,我想您已经升级platform-tools到 28.0.1。
你可以尝试做一个解决方法:将你的降级platform-tools到 28.0.0。
platform-tools从 Google 的 android 存储库下载28.0.0
解压platform-tools_r28.0.0-*.zip并尝试adb从 platform-tools/adb 运行
如果它有效,您可以platform-tools通过将解压缩的platform-tools文件夹复制到您的 Android SDK 根目录来覆盖您当前的 Android SDK
尽量避免platform-tools再次更新到 28.0.1,直到这个问题得到解决
阅读@Eduardo 评论中的链接后,似乎platform-tools 28.0.1在运行adb logcat.
adb如果您想运行较新版本的 ,维护者建议使用以下解决方法platform-tools:
使用adb shell -x logcat代替adb logcat。
| 归档时间: |
|
| 查看次数: |
2006 次 |
| 最近记录: |