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

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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-07-18
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2021-07-27
  • 2021-08-12
  • 2022-01-21
  • 2021-09-14
  • 2021-06-21
  • 2021-11-25
相关资源
相似解决方案