如何过滤logcat删除不相关的语句 [英] How to filter logcat to remove irrelevant statements
问题描述
我是Android Studio的新手,正在使用最新版本,并尝试编写基本的计算器应用程序.
I'm new to Android Studio, using latest version, and trying to code a basic calculator app.
由于某种原因,我的logcat充满了 2021-01-11 14:38:35.288 6938-6938/?W/CMD:找不到服务car_service
For some reason, my logcat is full of
2021-01-11 14:38:35.288 6938-6938/? W/cmd: Can't find service car_service
调试真的很烦人.
我如何摆脱它?
推荐答案
我将我的评论更改为答案,看似确实有帮助:
I'll change my comment to an answer, seeing as though it actually helped:
单击android studio底部的logcat,然后(我假设)您的将显示没有过滤器
,将该下拉列表更改为仅显示选定的应用程序
.除了您没有这样设置的事实外,我在这里没有什么要解释的,除了您自己的应用程序的日志外,logcat还会打印出与您的应用程序无关的内容
click on logcat at the bottom of android studio, then (i'm assuming) yours will show no filters
, change that dropdown to show only selected application
. Not really much I can explain here, except for the fact that if you don't have it setup like this, logcat will print out things which are irrelevant to your app in addition to the logs from your own application
这篇关于如何过滤logcat删除不相关的语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!