Logcat shows nothing

I worked on my android application and used eclipse to create it and showed some values โ€‹โ€‹in android logcat.

everything worked fine, but now when I run my application, logcat shows nothing. In addition, I tried to launch another application, but still remains empty.

What is the reason for this behavior, how can I get it back again?

+13
source share
7 answers

Try the following:

On Linux or Mac OS X:

./adb kill-server ./adb start-server 

On Windows:

 adb kill-server adb start-server 

This will restart adb and everything should work fine.

+20
source

Sometimes this problem occurs when you run two Eclipse instances on your computer, for example, on different workspaces. Therefore, to avoid a recurrence of the problem, you should use only one instance of eclipse.

To restore the log, follow these steps:

  • Disconnect device
  • Close All Eclipse Windows
  • Restart adb on the command line: adb kill-server and adb start server
  • Start Eclipse again and connect the device.

Sometimes a different method helps. Go to Eclipse Window> Vista> DDMS , and then select Reset adb device

+7
source

This happened to me, but I think the problem is in DDMS.

You can try the following:

  • Open perspective DDMS
  • Go to the "Devices" tab (if you do not have open access to Windows โ†’ Show Views โ†’ Devices)
  • Click on the open emulator and you will see the log again.
+4
source

When you restart the database server from the command line, the alternative reset ADB method from Eclipse works fine. Open the DDMS perspective, click the drop-down menu on the "Devices" toolbar and select the "Reset adb" menu item. Device dropdown menu

+2
source

When LogCat does not display Log.i () or any information:

Attempt:

  • Check if the target is set correctly.

  • Go to sdk folder -> platform tools

    press Ctrl + Shift and right-click in an empty space and select open the command window here to open the command window.

    Now enter the following two commands to kill adb and restart it.

    adb kill-server

    adb start-server

  • And then finally restart your eclipse.

I ran into the same problem. This worked great.

+1
source

I had the same problem. This is because Proxifier works on my machine. You cannot use this tool in eclipses when you have a network proxy, port scan, and such programs running.

0
source

In my case, basically the filters are wrong. I donโ€™t know how it always changes filters, but when I select the right filter, everything works fine

0
source

All Articles