Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB logcat fails to clear the main log

Tags:

android

adb

When I connect to a device or an emulator using adb, I can clear logcat using adb logcat -c. The issue I am facing is that I often get the following message:

failed to clear the 'main' log

AFAIK, 'main' is a non-rooted buffer which means that I should be able to clear it without root. What can then be the reason for this message?

like image 553
vatbub Avatar asked Jul 05 '18 10:07

vatbub


2 Answers

You might have your Android Studio opened, please close it and run again , it should able to clear the logs.

like image 190
user1421092 Avatar answered Sep 30 '22 21:09

user1421092


use

adb logcat -b all -c 

it will clear all buffers. sometime adb logcat -c will not work because of many process using it like android studio.

like image 39
Parag Jain Avatar answered Sep 30 '22 21:09

Parag Jain