读取CPU使用率时出错:/proc/stat(权限被拒绝) [英] Error reading CPU usage: /proc/stat (permission denied)

查看:826
本文介绍了读取CPU使用率时出错:/proc/stat(权限被拒绝)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已附上是我在运行应用程序后在Android Studio中显示的错误消息.我可以在设备上构建并运行该程序,而不会出现任何问题.在开始按照Google的新应用要求定位API级别26之前,我没有收到此错误.关于如何纠正错误的任何建议?另外,如果未解决,此错误将来还会引起问题吗?

Attached is my error message that comes up in Android Studio after running the application. I am able to build and run the program on a device without any issues. I was not getting this error until I started targeting API level 26 as per Google's new app requirements. Any suggestions on how to fix the error? Also, will this error cause issues in the future if not addressed?

谢谢!

推荐答案

API级别26或更高版本无法访问/proc/stat.Google已将其限制为非系统应用程序.从API级别26开始,只有系统应用可以访问/proc/stat

Accessing /proc/stat not possible with the API Levels 26 or higher. Google has restricted this to non-system apps. From API Level 26 only system apps can access /proc/stat

更多信息 https://issuetracker.google.com/issues/37140047

这篇关于读取CPU使用率时出错:/proc/stat(权限被拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆