Reputation: 8853
I was working on my Android application and using Eclipse to build it and displaying some values in Android Logcat.
Everything was working fine, but suddenly now when I run my application, Logcat does not shows anything. I tried to run my other application, but still it remains blank.
What is reason for this behavior, how can I get it back working again?
Upvotes: 19
Views: 22972
Reputation: 528
When LogCat doesn't show up the Log.i() or any information:
Try:
Check for the target set properly.
Go to your sdk folder-->platform-tools
press the Ctrl+Shift and mouse right click at the empty place and select open command window here to open command window.
Now enter the following two commands to kill the adb and re-start it.
adb kill-server
adb start-server
And then finally restart your eclipse.
I have faced the same problem. This worked perfectly.
Upvotes: 2
Reputation: 8371
While restarting the DB server from the command-line works great, there's an alternative methodto reset ADB from within Eclipse. Open the DDMS perspective, click on the dropdown menu in the Devices tab's toolbar, and select the "Reset adb" menu item.
Upvotes: 2
Reputation: 61
I had the same problem. It's because the Proxifier is running on my machine. You cannot use this tool in eclips when you have running network proxy, port scanning and this kind of programs.
Upvotes: 0
Reputation: 22212
It happened to me as well but I think the problem is in the DDMS.
You can try the following:
Upvotes: 4
Reputation: 6683
Sometimes this problem occurs when you run on your PC two instances of Eclipse, for example on different workspaces. So, to avoid repeating problem you should use only one instance of eclipse.
To repair logging you should do following steps:
Sometimes help other method. Go to Eclipse Window > Perspective > DDMS and than from Device sub-window choose Reset adb
Upvotes: 7
Reputation: 72553
Try this:
On Linux or Mac OS X:
./adb kill-server
./adb start-server
On Windows:
adb kill-server
adb start-server
This will restart the adb and everything should work fine.
Upvotes: 27