0
点赞
收藏
分享

微信扫一扫

Permission is only granted to system app

当在AndroidManifest.xml中设置以下权限时:WRITE_SETTINGS(修改系统设置),会有警告
Permission is only granted to system app_android

原因如下:
此类权限仅授予系统级应用

解决办法:
1、不解决,这只是个警告,不会影响程序运行
2、改为第一个级别的警告:
File-Setting-Editor-Inspections
Android Lint下面,将 Using system app permission的Error改成Warning
Permission is only granted to system app_系统设置_02


举报

相关推荐

0 条评论