简体   繁体   English

adb logcat -c 从我的 macbook pro 到 nexus 设备没有清除日志

[英]adb logcat -c from my macbook pro to a nexus device does not clear the logs

adb logcat -c does not flush the logcat on Android. adb logcat -c不会在 Android 上刷新logcat。 It is still showing old entries.它仍然显示旧条目。

Anyone run into this issue?有人遇到过这个问题吗? Cannot seem to find a fix for this.似乎无法找到解决此问题的方法。

Depending on your device and Android version you might have run into this issue : "adb logcat -c does not clear the buffer when using Android 5.0" .根据您的设备和 Android 版本,您可能会遇到以下问题“adb logcat -c 在使用 Android 5.0 时不会清除缓冲区”

The suggested workaround is (look at the end):建议的解决方法是(看最后):

NOW=$(date +"%m-%d %H:%M:%S.000") ; adb logcat -T "$NOW"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM