Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is logcat not showing anything? [duplicate]

Tags:

android

logcat

I am using Eclipse classic to develop my Android applications. But I am not able to see any messages in the LogCat. Till yesterday it was showing each and every message, but now it is not showing anything. I have written a lot of log statements to trace my program, but because of this I am not able to trace.

Where is the problem?

like image 782
Chandra Sekhar Avatar asked Mar 02 '12 07:03

Chandra Sekhar


People also ask

Why is my Logcat not showing anything in Android?

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.

Why is Logcat not working?

Solution 1: Restarting your Android StudioIn your IDE Go to File > Invalidate Caches and Restart > Invalidate and Restart. This Solution will clear all the caches of Android studio IDE and restart it automatically, By the method, there are 80% change that Logcat will start work as before.

How do I copy a Logcat?

Open the log file in another text editor (use your favorite that is NOT eclipse) Select what you want. Now type ctrl - c to copy to the clipboard.


2 Answers

Try these first

  1. Go to the device tab, click your device. and go back to the logcat tab
  2. You might have filter set.
  3. You are probably viewing the wrong package.
like image 55
CChi Avatar answered Nov 07 '22 16:11

CChi


I've got it solved by:

  1. Closing the logcat window

  2. Running the following in command prompt:

adb kill-server adb start-server 
  1. Opening logcat again
like image 42
vijeth.ag Avatar answered Nov 07 '22 16:11

vijeth.ag