消除“Permission is only granted to system apps”错误

来源:互联网 发布:spring mvc js国际化 编辑:程序博客网 时间:2024/06/06 02:15

In Eclipse:

Window -> Preferences -> Android -> Lint Error Checking.

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.

In Android Studio:

File -> Settings -> Inspections

Under Android Lint, locate Using system app permission. Either uncheck the checkbox or choose a Severity lower than Error.

0 0
原创粉丝点击