title: ViewModel constructor should be annotated with @Inject instead of @AssistedInject
body: <p>I want to provide some dependency at run time to ViewModel using Hilt. I have followed the solution that was directed by d.android.com <a href="https://github.com/google/dagger/issues/2287" rel="noreferrer">this</a>.</p>
  <pre><code>@HiltViewModel    
  public class ViewViewModel extends ViewModel {
      ...
      @AssistedFactory
      public interface ViewViewModelFactory {
          ViewViewModel create(@Assisted int version);
      }
  
      @AssistedInject
      public ViewViewModel(ProfileRepository repository, @Assisted int version) {
          mProfileRepository = repository;
      }
  }
  
  @AndroidEntryPoint
  public class CarFragment extends Fragment {
      @Inject
      ViewViewModel.ViewViewModelFactory mViewViewModelFactory;
  
      ...
  
      @Override
      public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
          ViewViewModel viewModel = mViewViewModelFactory.create(21);
      }
  }
  </code></pre>
  <p>However, still getting the build error <code>ViewModel constructor should be annotated with @Inject instead of @AssistedInject.</code></p>
  <p>I am using hilt version 2.38.1 and AGP version 7.0.0. Also tried with some earlier version (2.35, 2.37).</p>
  <p>I have also tried creating my own Factory Provider without any luck:</p>
  <pre><code>public class ViewViewModel extends ViewModel {
  ...
  @AssistedFactory
  public interface ViewViewModelFactory {
      ViewViewModel create(@Assisted int version);
  }
  
  @AssistedInject
  public ViewViewModel(ProfileRepository repository, @Assisted int version) {
      mProfileRepository = repository;
  }
  
  public static ViewViewModel provideFactory(ViewViewModelFactory assistedFactory,
                               int version){
      return new ViewViewModelFactoryProvider(assistedFactory,version).create(ViewViewModel.class);
  }
  
  public static class ViewViewModelFactoryProvider implements ViewModelProvider.Factory {
      ViewViewModelFactory assistedFactory;
      int version;
  
      public ViewViewModelFactoryProvider(ViewViewModelFactory assistedFactory,
                                             int version) {
          this.assistedFactory = assistedFactory;
          this.version = version;
      }
  
      @NonNull
      @Override
      public &lt;T extends ViewModel&gt; T create(@NonNull Class&lt;T&gt; modelClass) {
          return (T) assistedFactory.create(version);
      }
  }
  </code></pre>
  <p>}</p>
  <pre><code>@AndroidEntryPoint
  public class CarFragment extends Fragment {
      @Inject
      ViewViewModel.ViewViewModelFactory mViewViewModelFactory;
  
      ...
  
      @Override
      public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
          ViewViewModel viewModel = ViewViewModel.provideFactory(mViewViewModelFactory,21);
      }
  </code></pre>
  <p>}</p>