java.lang.RuntimeException: Unable to start activity ComponentInfo{rishabh.example.com.myapplication/rishabh.example.com.myapplication.MainActivity}: java.lang.IllegalArgumentException: Can't call setOverrideDeadline() on a periodic job.

Stack Overflow | Rishabh Jindal | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JobScheduler.schedule(job) is not starting the JobService

    Stack Overflow | 7 months ago | Rishabh Jindal
    java.lang.RuntimeException: Unable to start activity ComponentInfo{rishabh.example.com.myapplication/rishabh.example.com.myapplication.MainActivity}: java.lang.IllegalArgumentException: Can't call setOverrideDeadline() on a periodic job.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Can't call setOverrideDeadline() on a periodic job.

      at me.tatarka.support.job.JobInfo$Builder.build()
    2. me.tatarka.support
      JobInfo$Builder.build
      1. me.tatarka.support.job.JobInfo$Builder.build(JobInfo.java:477)
      1 frame
    3. rishabh.example.com
      MainActivity.onCreate
      1. rishabh.example.com.myapplication.MainActivity.constructJob(MainActivity.java:30)
      2. rishabh.example.com.myapplication.MainActivity.onCreate(MainActivity.java:19)
      2 frames
    4. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6010)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
      3 frames