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

查看:61
本文介绍了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.

希望这对某人有所帮助.

Hope this helps someone.

编辑:您也可以为 logcat 选择 Show only selected application 以仅显示当前调试进程,即您的应用程序.

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天全站免登陆