Questions tagged [logcat]

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logging information from Logcat is vital for diagnosing problems and debugging Android apps.

To retrieve information from logcat manually the Android Debug Bridge (ADB) command line tool is used. Alternatively Eclipse with Android Development Tools (ADT) plug-in provides a logcat view in most perspectives, automatically retrieving logging information.

Detailed information on the logcat command is available at the Android Developers documentation.

2313 questions
124
votes
11 answers

How to filter logcat in Android Studio?

In my logcat there is too much output, so I'd like to filter it using some keywords, basically displaying only the output containing the keyword(s). Is there a way to do that in Android Studio through the UI?
Alessandro Roaro
  • 4,665
  • 6
  • 29
  • 48
118
votes
5 answers

How to enable LogCat/Console in Eclipse for Android?

While working on a simple program in Android, I mistakenly closed LogCat window and I want to know how to show it again.
Rakesh
  • 14,997
  • 13
  • 42
  • 62
117
votes
18 answers

Android Studio - ADB Error - "...device unauthorized. Please check the confirmation dialog on your device."

So I started getting errors in my ADB logs which, I think, are causing my device to now display any logcat output for my app. I am getting all the logcat output except the one from the app itself. PropertyFetcher: AdbCommandRejectedException getting…
Georgi Angelov
  • 4,338
  • 12
  • 67
  • 96
112
votes
12 answers

How to display long messages in logcat

I am trying to display long message on logcat. If the length of message is more than 1000 characters, it gets broken. What is the mechanism to show all characters of long message in logcat?
Vasu
  • 2,673
  • 5
  • 20
  • 17
95
votes
4 answers

How can I erase the old data from logcat?

When I execute the command adb logcat while running the android emulator, all of the old logs blow past and so I figure they are stored in a file somewhere. Is there a command I can run to clear the logs and start fresh? If not, is there some…
aarona
  • 35,986
  • 41
  • 138
  • 186
93
votes
2 answers

Android App crashes without any logcat or any exception

Good day.I have very weird situation.The app crashes on some point but not as it usually will crash.The app goes back to previous activity or completelly quiting the application without showing the dialog "UNFORTUNATALLY APP CLOSED" and the android…
Vladimir Arevshatyan
  • 1,101
  • 1
  • 7
  • 13
92
votes
6 answers

Couldn't load memtrack module Logcat Error

I am getting an error Couldn't load memtrack module (No such file or directory) failed to load memtrack module: -2 at run time. StackTrace Error: E/SoundPool(1280) : error loading /system/media/audio/ui/Effect_Tick.ogg E/SoundPool(1280) …
Stephen
  • 9,899
  • 16
  • 90
  • 137
92
votes
6 answers

sendUserActionEvent() is null

I've got a real doozy here. When I click on spinners, open menu items, or open context menus on long-clicks I get the same Logcat message: 08-02 21:20:57.264: E/ViewRootImpl(31835): sendUserActionEvent() mView == null The tag is ViewRootImpl, and…
crocboy
  • 2,887
  • 2
  • 22
  • 25
90
votes
4 answers

Android Studio Logcat colors

It is really hard to follow up Android logcat output all in a same color. Is there any way to change the log colors?
Mohsen Mirhoseini
  • 8,454
  • 5
  • 34
  • 59
90
votes
9 answers

Android: How can I print a variable on eclipse console?

I wanted to print the value of a variable on the console for my debugging purpose, but System.out.println doesn't work.
SuperCop
  • 947
  • 1
  • 6
  • 5
89
votes
6 answers

Enable LogCat on Release Build in Android Studio

By default, when I change Build Variants to release I don't get any Logs on the logcat, but I do need to read release logs of my app, how can I enable this?
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
86
votes
1 answer

Logcat error message - Attempted to destroy barrier with non zero count

I'm making an android app in Android Studio, integrating ParseCloud and when I try to retrieve some JSONObject from the cloud, I get this error message after step-debugging: 12-13 13:32:34.857 25631-25638/com.parse.starter A/art:…
ArtanisAce
  • 957
  • 7
  • 14
85
votes
5 answers

android logcat logs chatty module line expire message

I am getting lots of this kind of logcat messages related to my application. 11-19 19:04:23.872 3327 3440 I chatty : uid=10085 com.xxxx.yyy expire 18 lines What are these log messages? Am I missing my actual application logcat logs here?
AndRSoid
  • 1,777
  • 2
  • 13
  • 25
82
votes
12 answers

Print the contents of a Bundle to Logcat?

Is there an easy way to print the contents of a Bundle to Logcat if you can't remember the names of all the keys (even being able to print just the key names would be cool)?
Quasaur
  • 1,335
  • 1
  • 10
  • 27
81
votes
28 answers

Android Studio not showing Logcat with Flutter

I'm using Android Studio for Flutter App Development. Everything seems to be working fine just that the Android Studio does not show the "logs" in Logcat. In the Logcat section, it says "Please Configure Android SDK". Which is already configured.…
VoidMain
  • 957
  • 1
  • 8
  • 12