Permission is only granted to system apps

AndroidStudio下 Permission is only granted to system apps 出错怎么解决啊?
<uses-permission android:name="android.permission.DEVICE_POWER" />
<uses-permission android:name="android.permission.WRITE_APN_SETTINGS" />
<uses-permission android:name="android.permission.SET_ORIENTATION" />
这三个权限底下出现红色波浪线。Permission is only granted to system apps_第1张图片


解决方法:

uses-permission是用户权限,以上三个出错权限是系统权限,把uses-permission改成permission即可。

如下:

    <permission  android:name="android.permission.DEVICE_POWER" />
    <permission  android:name="android.permission.WRITE_APN_SETTINGS" />
    <permission  android:name="android.permission.SET_ORIENTATION" />

你可能感兴趣的:(Permission is only granted to system apps)