admin管理员组

文章数量:1534564

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

本文标签: 日志androidStudio