Eclipse LogCat - Not Working

六月ゝ 毕业季﹏ 提交于 2019-12-09 09:18:41

问题


This is the most frustrating thing ever, LogCat keeps deactivating/disconnecting. After running eclipse, LogCat logs for first run and after that, it goes Blank. I have to restart Eclipse to get it running again, and then same thing happens again. What is matter with it? It used to work fine. I can't recall changes I've made to undo what I (might) have done.

EDIT - Screen of Eclipse as requested.

EDIT 2 - Screen of currently installed SDK packages


回答1:


If the LogCat is empty, the emulator doesn't have the focus. Go to the DDMS perspective and try clicking on the 'emulator' entry in the Devices panel (top-left screen).

Same thing with a device. You just have to click on the entry representing that device and the log messages comes.




回答2:


I believe this other post with the same problem will answer this:

https://stackoverflow.com/a/11967853/241014

Essentially, set the log's buffer to a higher value by going in Eclipse to Window > Preferences > Android > LogCat. Set the "Maximum number of logcat messages to buffer" to something higher than the default of 5,000.




回答3:


Most of the time Rahuls method would work, but sometimes even that doesn't work in that case, Kill the ADB and restart the eclipse.




回答4:


For Eclipse only when LogCat isn't working:

1 - Open Perspective "DDMS".
2 - On the left side, click on the device you want to monitor.
3 - Change Perspective back to "JAVA".




回答5:


In case if you are using cynogenmod in your mobile, try this:

In your device, open "/system/etc/init.d/" folder If there are many files, try opening each file and find for this line:

rm /dev/log/main

Now, comment this line like this: # rm /dev/log/main

save the file and reboot.




回答6:


If you close LogCat and re-open it it will display the information.




回答7:


Although this question has been asked long before, I am answering for others who might stumble upon this trouble.

In Mars, eclipse 4.5 and linux using GTK 3, if Android Logcat display is missing, add the following in eclipse.ini before "--launcher.appendVmargs".

--launcher.GTK_version
2

May also refer these posts.
Logcat show invisible messages in Eclipse Mars
Eclipse GUI broken



来源:https://stackoverflow.com/questions/20828207/eclipse-logcat-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!