【Android】studio查看日志解决刷爆问题

编程入门 行业动态 更新时间:2024-10-21 03:53:59

Android调试出现了logcat: Unexpected EOF!

完整的异常信息:

	logcat: Unexpected EOF!
    This means that either the device shut down, logd crashed, or this instance of logcat
    was unable to read log messages as quickly as they were being produced.
    If you have enabled significant logging, look into using the -G option to increase log
    buffer sizes.

解决方法:
1.通过命令修改日志缓冲区大小:
先通过 adb shell命令 执行:logcat -g 查看缓存日志的大小;
再通过命令执行:logcat -G 3M 临时处理日志缓冲大小即可;

2.手动调整:
进入设置找到开发者权限,进入找到日志记录器缓冲大小 手动选择每个日志缓冲区的大小:
调整大小后,进行编译器查看日志是否正常即可;

更多推荐

【Android】studio查看日志解决刷爆问题

本文发布于:2023-06-13 09:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/679038.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日志   Android   studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!