Log cat don't show log's

走远了吗. 提交于 2020-01-17 00:40:14

问题


I'm working on android . it seem's that some times my LogCat doesn't work correctly and do not any thing mean that it don't show any thing . (specialy when i working on more than one emulator .) can any one help me ?I need my LogCat .


回答1:


Usually it happens when eclipse loses the connection to the adb server. The cause is often testing on more devices/emulators.

In order to fix this, open the DDMS perspective and in the Devices View click on the device for which you want to output the logs in LogCat and they will appear again.

In Eclipse:

Window > Open Perspective > DDMS, then click on the device in the "Devices" view

Or if you do not want to switch perspectives Window > Show View > Other select -> Android > Devices




回答2:


Might be an filtering issue in eclipse...clear filters and set mode to verbose!




回答3:


A few items to try:

  1. Make sure your USB Debugging is enabled.
  2. Make sure you have the right drivers for your phone installed - you can usually get them from the manufacturer's website. These are not always the same as the drivers installed by Windows for media sharing. This site will help for finding OEM USB drivers.
  3. Close the LogCat window. Connect your device. Make sure USB debugging is enabled. Re-open LogCat.
  4. Make sure you're in the right view in LogCat. You may be in an app filter view and not the un-filtered view.
  5. Restart Eclipse and try any of #1 - #4.

Good luck!



来源:https://stackoverflow.com/questions/17496777/log-cat-dont-show-logs

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