Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logcat is often out of work

Tags:

android

logcat

Logcat is often not working, showing nothing. It's very unlivable. Restarting eclipse everytime it happens is too annoying. Is there anything I can do to solve it? Thanks

like image 545
Sean Avatar asked Dec 15 '10 01:12

Sean


People also ask

Why is my Logcat empty Android studio?

Go to the File option > click on “INVALIDATE CACHES/RESTART” then a dialog box will pop up, Select the “INVALIDATE CACHES/RESTART” button. This will automatically restart and build the index of android studio.

What is the use of Logcat in Android?

Logcat is a command-line tool that dumps a log of system messages, including stack traces when the device throws an error and messages that you have written from your app with the Log class. This page is about the command-line logcat tool, but you can also view log messages from the Logcat window in Android Studio.


2 Answers

Sometimes the Logcat is empty in Eclipse because the emulator doesn't have the focus. Go to the DDMS perspective and try clicking on the 'emulator' entry in the top-left screen.

Can be even more confusing if there's also a real G1 connected, then you have to choose from which one you want to see the output :)

Hope this helped.

like image 89
Paul Avatar answered Oct 24 '22 16:10

Paul


I just always keep logcat open in my terminal instead of eclipse. Just navigate to your platform-tools folder and type adb logcat

like image 35
Nathan Schwermann Avatar answered Oct 24 '22 17:10

Nathan Schwermann