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" />
這三個權限底下出現紅色波浪線。android
解決方法:app
uses-permission是用戶權限,以上三個出錯權限是系統權限,把uses-permission改爲permission便可。spa
以下:.net
<permission android:name="android.permission.DEVICE_POWER" />
<permission android:name="android.permission.WRITE_APN_SETTINGS" />
<permission android:name="android.permission.SET_ORIENTATION" />get