title: RuntimeException AndroidInjection.inject in Dagger2 service
body: <p>I have a service and I'm using dagger2 <code>v2.27</code>, In the google play store consolo y have the following crash (I don't have this crash in Firebase console tho)</p>
  <blockquote>
  <p>Caused by: java.lang.RuntimeException:    at
  dagger.android.AndroidInjection.inject (AndroidInjection.java:124)<br />
  at app.ui.main.ServiceNotificationListener.onCreate
  (ServiceNotificationListener.java:34)   at
  android.app.ActivityThread.handleCreateService
  (ActivityThread.java:3758)</p>
  </blockquote>
  <p>I'm using a Service that extends <strong>Android</strong> <code>NotificationListenerService</code> , in <code>onCreate</code> I have the following</p>
  <pre><code> override fun onCreate() {
          AndroidInjection.inject(this) // line 34
  }
  </code></pre>
  <p>MainApplication:</p>
  <pre><code>    class MainApplication : Application(), HasAndroidInjector {
      
       override fun onCreate() {
              super.onCreate()
       DaggerAppComponent
                  .builder()
                  .application(this)
                  .build()
                  .inject(this)
      }
  }
  </code></pre>
  <p>In <code>AndroidManifest.xml</code></p>
  <pre><code>   &lt;application
          android:hardwareAccelerated = &quot;true&quot;
          android:name=&quot;.ui.MainApplication&quot;
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme.NoActionBar.NoStatusBar&quot;&gt;
  </code></pre>
  <p>I can't reproduce the bug, I reaad about the application is null, but not sure how I can solve the issue for my service (relies on NotificationListener) Thanks a lot</p>