Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running android 4.4 avd, You must create a service that extends GsmJobSchedulerService, #14

Open
i-khan opened this issue Jul 5, 2019 · 0 comments

Comments

@i-khan
Copy link

i-khan commented Jul 5, 2019

Hi,

I tried running sample app in android 4.4 and got an error

java.lang.RuntimeException: Unable to create application com.ikhan.test.App: java.lang.IllegalArgumentException: You must create a service that extends GcmJobSchedulerService at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4347) at android.app.ActivityThread.access$1500(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalArgumentException: You must create a service that extends GcmJobSchedulerService at com.birbit.android.jobqueue.scheduling.GcmJobSchedulerService.createSchedulerFor(GcmJobSchedulerService.java:28) at com.ikhan.test.domain.services.jobs.JobManagerFactory.configureJobManager(JobManagerFactory.java:72) at com.ikhan.test.domain.services.jobs.JobManagerFactory.getJobManager(JobManagerFactory.java:26) at com.ikhan.test.App.onCreate(App.java:34) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4344) at android.app.ActivityThread.access$1500(ActivityThread.java:135)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5017)  at java.lang.reflect.Method.invokeNative(Native Method) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant