添加权限后,Android清单文件中休息 [英] Android manifest file breaks after adding a permission
问题描述
我有一个很奇怪的问题,我继承了Android项目。我尝试添加权限给它,突然一些其他的权限与随此错误显示红色的X突破:
I have a really strange problem with an Android project I inherited. I tried adding a permission to it and suddenly a few other permissions break with the red "X" being displayed along with this error:
权限仅授予系统的应用程序。
"Permission is only granted to system apps."
怎么会这样,如果我所做的只是添加权限?如果我不救清单和清理项目,所有的红色X标记消失,再次编译。为什么会出现这种情况?
How could this be if all I did was add a permission? If I don't save the manifest and clean the project, all the red "X" marks go away and it compiles again. Why is this happening?
推荐答案
在Eclipse中,转到
In Eclipse, goto
Window -> Preferences -> Android -> Lint Error Checking.
在列表中找到 ID = ProtectedPermission
的条目。严重性设置不是错误降低。这样,您就可以使用Eclipse仍编译该项目。
In the list find an entry with ID = ProtectedPermission
. Set the Severity to something lower than Error. This way you can still compile the project using Eclipse.
这篇关于添加权限后,Android清单文件中休息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!