title: Unable to process this interface because not all of its dependencies could be resolved, dagger android?
body: <p>My current project is in Java and I am trying to convert it to kotlin class by class. 
  I try to inject a dependency in my kotlin fragment with the following code</p>
  
  <pre><code>    @Inject
  lateinit var appCMSPresenter: AppCMSPresenter
  </code></pre>
  
  <p>in onViewCreated</p>
  
  <pre><code>(activity?.applicationContext as AppCMSApplication).appCMSPresenterComponent.inject(this)
  </code></pre>
  
  <p>It gives me the following error</p>
  
  <pre><code>ComponentProcessor was unable to process this class because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
  public final class LoginFragment1 extends androidx.fragment.app.Fragment {
  
   public interface AppCMSPresenterComponent {
   warning: The following options were not recognized by any processor: '[stagGeneratedPackageName, kapt.kotlin.generated, stagAssumeHungarianNotation, stagDebug]'
  </code></pre>
  
  <blockquote>
    <p>Task :AppCMS:kaptMobileNonflavourDebugKotlin FAILED
           ^</p>
  </blockquote>
  
  <p>This is my dagger component</p>
  
  <pre><code>@Singleton
  @Component(modules = {AppCMSPresenterModule.class})
  public interface AppCMSPresenterComponent {
  AppCMSPresenter appCMSPresenter();
  
  void inject(LoginFragment fragment);
  
  void inject(LoginFragment1 fragment);
  
  }
  </code></pre>
  
  <p>Module</p>
  
  <pre><code>@Module(includes = {AppCMSSearchModule.class})
  public class AppCMSPresenterModule {
  @Provides
  @Singleton
  public ReferenceQueue&lt;Object&gt; providesReferenceQueue() {
      return new ReferenceQueue&lt;&gt;();
  }
  
  @Provides
  @Singleton
  public AppCMSPresenter providesAppCMSPresenter(Gson gson,
                                                 AppCMSArticleCall appCMSArticleCall,
                                                 AppCMSPhotoGalleryCall appCMSPhotoGalleryCall,
                                                 AppCMSScheduleCall appCMSScheduleCall) {
      return new AppCMSPresenter(gson,
              appCMSArticleCall,
              appCMSPhotoGalleryCall, appCMSScheduleCall)
  }
  </code></pre>
  
  <p>I am adding dependency in LoginFragment1</p>
  
  <p>What could be the issue?</p>