标签: android
为什么我要在FOREGROUND_SERVICE中声明AndroidP的权限,但是在运行startForeground时仍然报告错误
FOREGROUND_SERVICE
AndroidP
startForeground
java.lang.SecurityException:权限拒绝:从pid = 21105开始的startForeground,uid = 10028需要android.permission.FOREGROUND_SERVICE
奇怪的是,我有检查权限,无效