JobService does not require android.permission.BIND_JOB_SERVICE permission

眉间皱痕 提交于 2019-12-03 04:27:42

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:

    <service android:name="com.jorgesys.jobscheduler.MyService"
        android:permission="android.permission.BIND_JOB_SERVICE"
        android:exported="true"/>
Constanza Quaglia

There's a typo in your Android Manifest.

Just change the following line:

android:permission="android:permission.BIND_JOB_SERVICE"

to

android:permission="android.permission.BIND_JOB_SERVICE"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!