Android java.lang.IllegalArgumentException: No such service ComponentInfo JobScheduler

…衆ロ難τιáo~ 提交于 2019-12-03 04:59:50

You need to add the permission android.permission.BIND_JOB_SERVICE into your AndroidManifest.xml

...
<service android:name=".TestService"
     android:permission="android.permission.BIND_JOB_SERVICE"
     android:exported="true"/>
...
</application>

Try clean project. It was my case.

My issue was that my Service was defined as an static inner class. The issue resolved itself once I moved the service class into it's own Java file

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