原文:http://blog.csdn.net/gaojinshan/article/details/14230673

 

 

在AndroidManifest.xml中使用了如下的配置: <uses-permission android:name="android.permission.INSTALL_PACKAGES" />

就会报错:Permission is only granted to system apps

原因如下: 此类权限仅授予系统级应用,可以修改下Link Error Checking项的安全级别; In Eclipse: Window -> Preferences -> Android -> Lint Error Checking 在ID列表中,找到ID = ProtectedPermission,设置Serverity低于Error,比如Warning级别就好了。

相关文章:

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