LG G2(Android版本:4.4.2)设备无法将ANR跟踪写入trace.txt。它是设备或固件的问题吗?
以下是adb日志中给出的错误。
05-20 10:05:32.015 964 1003 E ActivityManager:ANR in com.verizon.pushtotalkplus(com.verizon.pushtotalkplus / .PocMainActivity) 05-20 10:05:32.015 964 1003 E ActivityManager:PID:8309 05-20 10:05:32.015 964 1003 E ActivityManager:原因:输入调度超时(等待,因为触摸的窗口尚未处理先前传送给它的输入事件。)
05-20 10:05:32.025 964 23382 E ActivityManager:读取/data/anr/traces.txt时出错 05-20 10:05:32.025 964 23382 E ActivityManager:java.io.FileNotFoundException:/data/anr/traces.txt:open failed:ENOENT(没有这样的文件或目录) 05-20 10:05:32.025 964 23382 E ActivityManager:at libcore.io.IoBridge.open(IoBridge.java:458) 05-20 10:05:32.025 964 23382 E ActivityManager:at java.io.FileInputStream。(FileInputStream.java:78) 05-20 10:05:32.025 964 23382 E ActivityManager:at android.os.FileUtils.readTextFile(FileUtils.java:229) 05-20 10:05:32.025 964 23382 E ActivityManager:at com.android.server.am.ActivityManagerService $ 18.run(ActivityManagerService.java:10322) 05-20 10:05:32.025 964 23382 E ActivityManager:引起:libcore.io.ErrnoException:open failed:ENOENT(没有这样的文件或目录) 05-20 10:05:32.025 964 23382 E ActivityManager:at libcore.io.Posix.open(Native Method) 05-20 10:05:32.025 964 23382 E ActivityManager:at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) 05-20 10:05:32.025 964 23382 E ActivityManager:at libcore.io.IoBridge.open(IoBridge.java:442) 05-20 10:05:32.025 964 23382 E ActivityManager:... 3 more