title: Job Scheduler cant find job/service?
body: <p>My app needs to do something periodically so I'm trying the Job Scheduler introduced in Android API 21. At this moment I'm just gettingto know it and try the basics. Unfortunately I get an error:</p>
  
  <blockquote>
    <p>Java.lang.illegalArgumentException: No such service ComponentInfo{The whole path here to the service class name TestJobService}</p>
  </blockquote>
  
  <p>I understand this has been solved for some by adding permission to Manifest, but not me. What else can cause this?</p>
  
  <p>This is my code part where I guess it goes wrong:</p>
  
  <pre><code>Toast.makeText(getApplicationContext(), "Exec reaches here...",Toast.LENGTH_SHORT).show();
  JobInfo.Builder builder = new JobInfo.Builder(1, new ComponentName(getPackageName(),TestJobService.class.getName()));
      //runs job service after every 10 seconds
      builder.setPeriodic(10000);
      jobScheduler.schedule(builder.build());
  </code></pre>
  
  <p>I have this in my Manifest:</p>
  
  <pre><code>&lt;service
      android:name=".TestJobService"
      android:permission="android.permission.BIND_JOB_SERVICE"
      android:exported="true" &gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>One thing that confuses me is that I cant manually give job-permission to the app manually in the device settings (I do that to get permission to storage). If the app needs permission for schedualing jobs, shouldn't I have to give permission in the settings?</p>
  
  <p>I really hope someone has the solution for this.</p>
  
  <p>Thanks.  </p>