声明权限仍然异常,java.lang.SecurityException

时间:2019-03-11 08:12:38

标签: android

为什么我要在FOREGROUND_SERVICE中声明AndroidP的权限,但是在运行startForeground时仍然报告错误

  

java.lang.SecurityException:权限拒绝:从pid = 21105开始的startForeground,uid = 10028需要android.permission.FOREGROUND_SERVICE

enter image description here

奇怪的是,我有检查权限,无效

enter image description here

0 个答案:

没有答案