getting blank screen in logcat

旧街凉风 提交于 2019-12-23 16:23:19

问题


I have got a problem in my logcat screen and the problem is that,whenever I get error from my application I get blank screen in logcat and I am unable to look at the errors and fix them.How do I overcome this sort of issue?

here is my logcat screen:


回答1:


Update your ADT plugin in Eclipse and right now you are using deprecated Logcat.

Help > Check for Updates



回答2:


Go to DDMS->Devices and select the device that you are currently working on.




回答3:


Just Try this command:---

adb shell
echo 1 > /sys/kernel/logger/log_main/enable



回答4:


I run into that problem sometimes and I suggest:

  • Make sure you select the "V" tag to prove that why this happened is not because there is really no errors (Since you select the "E" tag).
  • Install the USB driver from the manufacturer of your device. Although you can connect the phone to PC as an USB storage device without the driver, you can't debug on the phone without it.
  • In Settings->Applications->Development, check the USB debugging choice to allow you to debug on the phone.
  • Make sure you have selected the proper device or emulator, not some other emulators or devices.
  • Sometimes, the logcat shows nothing, even if you have finished these steps above. In this case, click the "Clear" tag(at the top right, with a RED cross), unplug the phone and plug in again.



回答5:


you have 3 things to do..

  1. start emulator...

  2. then see devices select your avd like Windows-show view-other-android-devices...

  3. then start logcat Windows-show view-other-android-logcat..that's it and it will do..

But First you should see the emulator in devices..

If you can't then in devices click down arrow near camera icon and click on reset adb.




回答6:


I ran into this issue in the Android Debug Monitor today. The reason this happened to me was because I had set the "maximum number of logcat messages to buffer" under Preferences/Android/LogCat to some very large amount like 50000000000. If you have played with this setting try setting it lower to like 5000. Once I configured mine back down to 50000 I started seeing messages come through LogCat again. You may have to restart things like the Android Debug Monitor, adb, the computer, the emulator, or the phone. At one point or another I tried all of those. Also you should see an error message when you try to configure this setting back to default. I believe it was a Java Null pointer or something. You can safely ignore the message and just check that the configuration worked when you go back into the Debug monitor. Good luck!




回答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/8265495/getting-blank-screen-in-logcat

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