美文网首页
Android Studio 出现read: Unexpecte

Android Studio 出现read: Unexpecte

作者: MarkDev | 来源:发表于2022-04-19 15:42 被阅读0次

LogCat出现ead: Unexpected EOF! 是因为logcat的写入速度太快,导致读取不足,是因为读取缓冲区只有64Kb,可以通过下面的命令更改logcat的读取缓冲区大小。
例如:adb logcat -G 4m 调整为4m
通过执行adb logcat -g 看到缓冲区扩充到了4m

main: ring buffer is 4 MiB (3 MiB consumed), max entry is 5120 B, max payload is 4068 B
system: ring buffer is 4 MiB (3 MiB consumed), max entry is 5120 B, max payload is 4068 B
crash: ring buffer is 4 MiB (2 KiB consumed), max entry is 5120 B, max payload is 4068 B

相关文章

网友评论

      本文标题:Android Studio 出现read: Unexpecte

      本文链接:https://www.haomeiwen.com/subject/qrpvertx.html