logcat信息出现在android studio的“运行"选项卡中 [英] logcat info appear in run tab in android studio

查看:71
本文介绍了logcat信息出现在android studio的“运行"选项卡中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的android studio运行标签很简单:

my android studio run tab was simple like that:

然后变得更加困难,并给我更多信息,例如logcat中的信息:

then it become harder and giving me more info like the info in logcat :

如何禁用或删除第二张图片中显示的更多信息并返回第一张图片中的第一张图片?

How can I disable or remove the more info that appear in second picture and return to the first look in the first picture ?

我只需要运行的flutter应用程序的日志输出.命令 flutter logs 可以完成任务,但是我不知道为什么Flutter控制台会通过运行Flutter应用程序的日志为我提供另一个日志,所以我在Flutter控制台中需要的只是(I/flutter和W/flutter),我想停止查看已开始出现在控制台中的其他信息和警告日志

I need only logs output for the running flutter apps. The command flutter logs do the job but I don't know why flutter console give me another logs with the logs of running flutter apps , all I need in flutter console is ( I/flutter and W/flutter ), I want to stop seeing the additional info and warning logs that have started appearing in console

推荐答案

flutter v1.17.*导致了此问题,因此请删除此附加信息和警告日志:
1)安装git
2)通过fld文件夹

flutter v1.17.* makes this problem, so to remove this additional info and warning logs :
1) Install git
2) do this commands by cmd in flutter folder

git clean -xfd
git stash save --keep-index
git stash drop
git pull

3)删除flutter文件夹
4)下载flutter v1.12.13 + hotfix.5-stable,并将其放在旧的flutter文件夹中(在上一步中已删除).

3) Delete flutter folder
4) Download flutter v1.12.13+hotfix.5-stable and put it in the place of old flutter folder ( that you deleted in the previus step ).

它对我来说非常有效,并且只给我运行的Flutter应用程序(I/flutter和W/flutter)的日志.如果它对任何人都有效,请告诉我这是否是正确的答案.

It Worked Perfectly to me and it gives me only logs for my running flutter app ( I/flutter & W/flutter). If it worked for anyone please let me know if this a right answer.

这篇关于logcat信息出现在android studio的“运行"选项卡中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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