Why do I declare FOREGROUND_SERVICE
permission in AndroidP
, but still report error when running startForeground
java.lang.SecurityException: Permission Denial: startForeground from pid=21105, uid=10028 requires android.permission.FOREGROUND_SERVICE
The strange thing is that I have check permission, invalid