“permission is only granted to system apps ” eclipse 调试修改
2016-04-01 10:06
483 查看
在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级别就好了。
<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级别就好了。
相关文章推荐
- android imageview拖拽
- 下拉刷新与ViewPager冲突的处理,android-Ultra-Pull-To-Refresh下拉刷新嵌套ViewPager手势冲突
- Android RecyclerView 使用完全解析 体验艺术般的控件
- 使用Activity用作弹出式对话框-----对话框不仅仅是Dialog,PopupWindow-----防微信对话框效果
- Android自定义属性时TypedArray的使用方法
- 移动端meta定义 & 触屏事件
- android:TextAppearance.Material.Widget.Button.Inverse问题
- tools.jar seems to be not in Android Studio
- WebView加载页面(URL、HTML、本地文件)
- Android LayoutInflater原理分析,带你一步步深入了解View(一)
- Android WebView开发问题及优化汇总 .
- 安卓ListView选中后保持高亮状态,且两级联动带图标
- 条目的侧拉删除----仿照微信
- HTML5手机APP开发入(5)
- iOS 面向对象
- android菜单详解五:菜单的其它特性
- Android 进阶路线
- AndroidManifest.xml相关
- android菜单详解四:子菜单
- iOS 基本数据类型与函数