title: String cannot be provided without an @Provides-annotated method
body: <p>I'm trying to use <code>ActivityScoped</code> and <code>ActivityComponent</code> in a simple project, but i was getting below error</p>
  <pre><code>@javax.inject.Named(&quot;String2&quot;) java.lang.String cannot be provided without an 
  @Provides-annotated method.
  public abstract static class SingletonC implements BaseApplication_GeneratedInjector,
  @javax.inject.Named(&quot;String2&quot;) java.lang.String is injected at
        com.example.hiltoplayground.TestViewModel(testString)
    com.example.hiltoplayground.TestViewModel is injected at
        com.example.hiltoplayground.TestViewModel_HiltModules.BindsModule.binds(vm)
    @dagger.hilt.android.internal.lifecycle.HiltViewModelMap 
   java.util.Map&lt;java.lang.String,javax.inject.Provider&lt;androidx.lifecycle.ViewModel&gt;&gt; 
   is requested at
        dagger.hilt.android.internal.lifecycle.HiltViewModelFactory.ViewModelFactoriesEntryPoint.getHiltViewModelMap() [com.example.hiltoplayground.BaseApplication_HiltComponents.SingletonC → com.example.hiltoplayground.BaseApplication_HiltComponents.ActivityRetainedC → com.example.hiltoplayground.BaseApplication_HiltComponents.ViewModelC]
  </code></pre>
  <p>But if i use <code>SingletonComponent</code> and <code>@Singleton</code> it runs perfect,  no issue.</p>
  <p>Here is the affected module</p>
  <pre><code>@Module
  @InstallIn(ActivityComponent::class)
  object MainModule {
  
      @ActivityScoped
      @Provides
      @Named(&quot;String2&quot;)
      fun provideTestString2 (
          @ApplicationContext context: Context
      ) = context.getString(R.string.string_inject)
  }
  </code></pre>
  <p>Below is the ViewModel (No problem here i guess)</p>
  <pre><code>@HiltViewModel
  class TestViewModel @Inject constructor(
      @Named(&quot;String2&quot;) testString: String): ViewModel() {
  
          init{
              Log.d(&quot;String2Message&quot;,&quot;Show $testString&quot;)
          }
  }
  </code></pre>