gpt4 book ai didi

android - android 4.0下的奇怪异常与eclipse

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:26:05 25 4
gpt4 key购买 nike

当我使用 eclipse 开发我的 android 项目时,logCat 总是打印这些警告,但应用程序运行正常,谁能告诉我发生了什么。

11-23 18:17:35.802: A/NetworkStats(87): problem reading network stats
11-23 18:17:35.802: A/NetworkStats(87): java.lang.IllegalStateException: problem parsing line: null
11-23 18:17:35.802: A/NetworkStats(87): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:313)
11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1223)
11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:810)
11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:771)
11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService.access$100(NetworkStatsService.java:128)
11-23 18:17:35.802: A/NetworkStats(87): at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:610)
11-23 18:17:35.802: A/NetworkStats(87): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
11-23 18:17:35.802: A/NetworkStats(87): at android.os.Handler.handleCallback(Handler.java:605)
11-23 18:17:35.802: A/NetworkStats(87): at android.os.Handler.dispatchMessage(Handler.java:92)
11-23 18:17:35.802: A/NetworkStats(87): at android.os.Looper.loop(Looper.java:137)
11-23 18:17:35.802: A/NetworkStats(87): at android.os.HandlerThread.run(HandlerThread.java:60)
11-23 18:17:35.802: A/NetworkStats(87): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory)
11-23 18:17:35.802: A/NetworkStats(87): at libcore.io.IoBridge.open(IoBridge.java:406)
11-23 18:17:35.802: A/NetworkStats(87): at java.io.FileInputStream.<init>(FileInputStream.java:78)
11-23 18:17:35.802: A/NetworkStats(87): at java.io.FileReader.<init>(FileReader.java:42)
11-23 18:17:35.802: A/NetworkStats(87): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:272)

最佳答案

@Drax:实际上,你在那里不正确,这取决于所使用的内核版本,事实上,如果你使用的是较旧的内核,例如 2.6.35 或左右,你肯定会得到这个错误因为内核 3 中的 netfilter(Linux 的 iptables netfilter 的一部分)具有此功能,目前尚未向后移植到旧内核。

关于android - android 4.0下的奇怪异常与eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8241068/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com