Android Studio Logcat不显示日志 [英] Android Studio Logcat not showing logs
问题描述
我面对的是非常尴尬的事情.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屋!