Android logcat read: Invalid argument
2012-10-16 19:36
225 查看
这几天真机调试总是出现logcat read: Invalid argument, 重启下正常。但不能每次都这样撒, google了下, 解决方法如下:
查了下logcat的help:
logcat -c 就是清除全部日志, 原来是日志太大了,导致了这一问题的出现。 ok了,现在eclipse显示就正常了。
只为更简单! --Rydiy
adb shell logcat -c
查了下logcat的help:
C:\Users\Administrator>adb shell sh-3.2# logcat --help logcat --help Usage: logcat [options] [filterspecs] options include: -s Set default filter to silent. Like specifying filterspec '*:s' -f <filename> Log to file. Default to stdout -r [<kbytes>] Rotate log every kbytes. (16 if unspecified). Requires -f -n <count> Sets max number of rotated logs to <count>, default 4 -v <format> Sets the log print format, where <format> is one of: brief process tag thread raw time threadtime long -c clear (flush) the entire log and exit -d dump the log and then exit (don't block) -t <count> print only the most recent <count> lines (implies -d) -g get the size of the log's ring buffer and exit -b <buffer> request alternate ring buffer ('main' (default), 'radio', 'events') -B output the log in binary filterspecs are a series of <tag>[:priority] where <tag> is a log component tag (or * for all) and priority is: V Verbose D Debug I Info W Warn E Error F Fatal S Silent (supress all output) '*' means '*:d' and <tag> by itself means <tag>:v If not specified on the commandline, filterspec is set from ANDROID_LOG_TAGS. If no filterspec is found, filter defaults to '*:I' If not specified with -v, format is set from ANDROID_PRINTF_LOG or defaults to "brief"
logcat -c 就是清除全部日志, 原来是日志太大了,导致了这一问题的出现。 ok了,现在eclipse显示就正常了。
只为更简单! --Rydiy
相关文章推荐
- logcat read: Invalid argument
- Git fatal: failed to read object ..... : Invalid argument
- Cannot set up guest memory 'android_arm': Invalid argument 解决方法
- [Android]模拟器不能启动,报错:Cannot set up guest memory 'android_arm': Invalid argument
- android read xml error: not well-formed (invalid token)
- [android][bug][closed] fastboot flash --- FAILED (command write failed (Invalid argument))
- Android模拟器无法启动,报错:Cannot set up guest memory ‘android_arm’ Invalid argument的解决方法
- Android模拟器无法启动,报错:Cannot set up guest memory ‘android_arm’ Invalid argument的解决方法
- Cannot set up guest memory 'android_arm': Invalid argument 解决方法
- ERROE - Android(MPTCP) - quagga - Invalid argument
- android java.io.FileNotFoundException: (Invalid argument)
- could-not-read-Username-for-https-github-com-Invalid-argument
- Android中LogCat工具的使用
- Android:无法删除DDMS中File Explorer中文件,提示read-only file system
- java.net.SocketException: sendto failed: EINVAL (Invalid argument)
- shmget创建共享内存errno=22,Invalid argument错误问题
- mongodb 3.4更新数据java.lang.IllegalArgumentException: Invalid BSON field name age
- android Installation failed due to invalid URI! 错误处理
- invalid command-line parameter: FilesAndroidandroid-sdk ools/emulator-arm.exe
- Android LogCat 打印长字段