Application does not implement dagger.android.HasDispatchingActivityInjector : <p>I have a subclass of Application that I am conforming to HasDispatchingActivityInjector, but when I try and run my app it will crash, saying:</p>

<pre><code>Unable to start activity ComponentInfo{com.test.testing/com.test.testing.ui.main.MainActivity}: java.lang.RuntimeException: android.app.Application does not implement dagger.android.HasDispatchingActivityInjector
</code></pre>

<p>This is my Application subclass:</p>

<pre><code>class MyApplication : Application(), HasDispatchingActivityInjector {

@Inject
lateinit var dispatchingAndroidInjector: DispatchingAndroidInjector&lt;Activity&gt;

override fun onCreate() {
    super.onCreate()

    DaggerAppComponent.create().inject(this)
}

override fun activityInjector(): DispatchingAndroidInjector&lt;Activity&gt; {
    return dispatchingAndroidInjector
}
</code></pre>

<p>Has anyone else experienced this error before?</p>

<p>Thanks</p>
