JobService does not require android.permission.BIND_JOB_SERVICE permission

后端 未结 2 1380
清酒与你
清酒与你 2020-12-30 19:38

I am getting does not require android.permission.BIND_JOB_SERVICE permission error while scheduling my JobService and I already have the bind perm

2条回答
  •  渐次进展
    2020-12-30 20:00

    To solve this problem:

    Scheduled service ComponentInfo{.........} does not require android.permission.BIND_JOB_SERVICE permission

    add the permission:

            android:permission="android.permission.BIND_JOB_SERVICE"
    

    but requires the property:

    android:exported="..."
    

    android:exported: Whether or not the broadcast receiver can receive messages from sources outside its application — "true" if it can, and "false" if not.

    For example:

        
    

提交回复
热议问题