简体   繁体   中英

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. 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" .

The suggested workaround is (look at the end):

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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