Permission Denial: requires android.permission.CHANGE_CONFIGURATION

参考:https://blog.csdn.net/codywangziham01/article/details/22064859?utm_source=copy

设置语言的时候报错: Permission Denial: updateConfiguration() requires 

在终端输入以下

>adb shell

>pm grant com.sightidea.locale android.permission.CHANGE_CONFIGURATION 

手动设置设置该包名的权限

在manifest里我也设置了权限,但是没有用,具体原因不清楚,貌似版本低一点的as可以运行?
 

猜你喜欢

转载自blog.csdn.net/Princess_ES/article/details/83064331