title: HasActivityInjector can not be resolved in android dagger 2
body: <p>I was trying to implement <strong>HasActivityInjector</strong> in my android application but it's showing me HasActivityInjector cann't be resolved. Below dependencies and plugin I have used in my project- </p>
  
  <pre><code>apply plugin: 'kotlin-kapt'
  </code></pre>
  
  <p>and </p>
  
  <pre><code>implementation 'com.google.dagger:dagger:2.16'
  kapt 'com.google.dagger:dagger-compiler:2.16'
  </code></pre>
  
  <p>Here is the code I am trying - </p>
  
  <pre><code>class RanoBoilerplateApplication : Application(), HasActivityInjector{
      @Inject
      lateinit var activityDispatchingAndroidInjector:
              DispatchingAndroidInjector&lt;Activity&gt;
  
      override fun onCreate() {
          super.onCreate()
  
          DaggerAppComponent.builder()
                  .application(this)
                  .build()
                  .inject(this)
      }
  
      override fun activityInjector(): AndroidInjector&lt;Activity&gt; =
              activityDispatchingAndroidInjector
  }
  </code></pre>
  
  <p>I don't know what other dependencies I must have to include to work that, help me if anyone have done this before.</p>
  
  <p>Find the latest Dagger 2 version <a href="https://github.com/google/dagger/releases" rel="noreferrer">here</a>.</p>
  
  <p>Happy coding :-) </p>