解决Unable to start service Intent { cmp=com.example.service/.MyServcie }: not found
在使用android开发的时候出现如下错误
09-08 09:58:52.776: W/NetworkManagementSocketTagger(77): setKernelCountSet(10021, 0) failed with errno -2 09-08 09:59:04.686: W/ActivityManager(77): Unable to start service Intent { cmp=com.example.service/.MyServcie }: not found
09-08 09:59:30.916: W/ThrottleService(77): unable to find stats for iface rmnet0
09-08 10:00:50.866: D/dalvikvm(169): GC_CONCURRENT freed 457K, 6% free 9532K/10119K, paused 4ms+4ms
09-08 10:01:53.096: A/NetworkStats(77): problem reading network stats
09-08 10:01:53.096: A/NetworkStats(77): java.lang.IllegalStateException: problem parsing idx 1
09-08 10:01:53.096: A/NetworkStats(77): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:300)
09-08 10:01:53.096: A/NetworkStats(77): at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1282)
09-08 10:01:53.096: A/NetworkStats(77): at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:831)
09-08 10:01:53.096: A/NetworkStats(77): at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:799)
09-08 10:01:53.096: A/NetworkStats(77): at com.android.server.net.NetworkStatsService.access$100(NetworkStatsService.java:128)
09-08 10:01:53.096: A/NetworkStats(77): at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:633)
09-08 10:01:53.096: A/NetworkStats(77): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
09-08 10:01:53.096: A/NetworkStats(77): at android.os.Handler.handleCallback(Handler.java:605)
09-08 10:01:53.096: A/NetworkStats(77): at android.os.Handler.dispatchMessage(Handler.java:92)
09-08 10:01:53.096: A/NetworkStats(77): at android.os.Looper.loop(Looper.java:137)
09-08 10:01:53.096: A/NetworkStats(77): at android.os.HandlerThread.run(HandlerThread.java:60)
09-08 10:01:53.096: A/NetworkStats(77): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT (No such file or directory)
09-08 10:01:53.096: A/NetworkStats(77): at libcore.io.IoBridge.open(IoBridge.java:406)
09-08 10:01:53.096: A/NetworkStats(77): at java.io.FileInputStream.<init>(FileInputStream.java:78)
09-08 10:01:53.096: A/NetworkStats(77): at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:269)
09-08 10:01:53.096: A/NetworkStats(77): ... 10 more
09-08 10:01:53.096: A/NetworkStats(77): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
09-08 10:01:53.096: A/NetworkStats(77): at libcore.io.Posix.open(Native Method)
09-08 10:01:53.096: A/NetworkStats(77): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
09-08 10:01:53.096: A/NetworkStats(77): at libcore.io.IoBridge.open(IoBridge.java:390)
09-08 10:01:53.096: A/NetworkStats(77): ... 12 more
出现如上错误发现是AndroidManifest.xml 清单文件中没有配置service
需要在 </application>上面添加 <service android:name=".MyServcie"></service>
来源://作者:/更新时间:2015-09-08
顶
踩
相关文章: