您的位置:首页 > 移动开发

Permission is only granted to system apps异常解决

2015-08-05 15:35 519 查看
在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级别就好了。

个人的解决办法

这句话的意思是“权限仅授予系统应用”,解决:project-->clean一下项目就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: