Today I encountered a problem that AS does not print logs
The error message is:
read: Unexpected EOF
After inquiring, it was found that after connecting to the computer after Android8.0, as long as the log is printed frequently and the volume is large, the error [read: unexpected EOF!
As long as this error occurs, Logcat will stop printing (especially this problem suddenly appeared when debugging in Android Studio)
Errors will be reported before 8.0, but the system loses too much data by default
The specific solution is:
Enter in the terminal command window
adb logcat -G 2m
Equivalent to modifying the log cache size
After modification, the problem is solved
For related solutions that do not print log, you can read this blog
https://blog.csdn.net/Android_xiong_st/article/details/81131845