Android Studio Logcat不显示日志 [英] Android Studio Logcat not showing logs

查看:182
本文介绍了Android Studio Logcat不显示日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面对的是非常尴尬的事情.Logcat显示在调试应用程序中,但是在运行(非调试)应用程序时,它没有显示Logcat.

There is very awkward thing I am facing. Logcat is shown in debugging application, but while running (not debugging) application, it is not showing Logcat.

我尝试重新启动它,但是什么也没发生.

I tried restarting it but nothing is happening.

推荐答案

就我而言,在Android 2.2中,由于某种原因,默认情况下在上面标记的下拉框中选择了Firebase.因此日志没有下降.我只需要将其更改为 No Filters .然后它起作用了.

In my case in Android 2.2, for some reason, Firebase was selected by default in the dropdown box marked above. So logs didn't drop. I just needed to change it to No Filters. Then it worked.

我什至尝试重新启动logcat,但也无法正常工作.没有过滤器发挥了魔力.

I even tried restarting the logcat, that didn't work too. No Filters did the magic.

希望这对某人有帮助.

修改:您也可以选择仅显示所选应用程序作为logcat,以仅显示当前调试过程,即您的应用程序.

Edit: You can as well select Show only selected application for logcat to show only the current debugging process, i.e your app.

这篇关于Android Studio Logcat不显示日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆