title: Subcomponent (unscoped) may not reference scoped bindings: @Singleton @Provides @org.jetbrains.annotations.NotNull
body: <p>I am using dagger 2.11</p>
  
  <p>Module</p>
  
  <pre><code>@Module
  class MyModule {
      @Provides
      fun provideString() : String = "yo"
      @Provides @Named("injector")
      fun provideInzectorString() : String = "named_injection"
  
      @Singleton @Provides //The error goes away if I remove @Singleton
      fun provideRepository() = Repository(Interceptor(),"")
  }
  </code></pre>
  
  <p>Activity binding module</p>
  
  <pre><code>@Module
  abstract class ActivityBindingModule {
      @ContributesAndroidInjector(modules = [MyModule::class])
       abstract fun suggestionActivity() : SuggestionsActivity
  
      @ContributesAndroidInjector(modules = [MyModule::class])
      abstract fun editSubscriptionActivity() : SubscribeActivity
  }
  </code></pre>
  
  <p>AppComponent</p>
  
  <pre><code>@Singleton
  @Component(modules = {
          AndroidInjectionModule.class,
          MyModule.class
  })
  interface AppComponent {
      @Component.Builder
      interface Builder {
          @BindsInstance
          Builder application(MyApplication application);
  
          AppComponent build();
      }
  
      void inject(MyApplication app);
  }
  </code></pre>
  
  <p>I get this error on compilation</p>
  
  <pre><code>SubscribeActivitySubcomponent (unscoped) may not reference scoped bindings:
        @Singleton @Provides @org.jetbrains.annotations.NotNull
  </code></pre>
  
  <p>I have seen these solutions <a href="https://stackoverflow.com/questions/46195553/component-unscoped-may-not-reference-scoped-bindings">1</a> and <a href="https://stackoverflow.com/questions/46195553/component-unscoped-may-not-reference-scoped-bindings?rq=1">2</a>. Both ask you to annotate your appcomponent with <code>@Singleton</code> which I am already doing. What is wrong with my code?</p>