title: DefaultActivityViewModelFactory not found
body: <p>After migrating the Hilt version from <code>2.33-beta</code> to <code>2.35</code> my project has stopped building with the error given below:</p>
  <p><a href="https://i.stack.imgur.com/JUVMG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JUVMG.png" alt="enter image description here" /></a></p>
  <p>A txt version:</p>
  <pre><code>error: cannot access DefaultActivityViewModelFactory    
    class file for dagger.hilt.android.internal.lifecycle.DefaultActivityViewModelFactory not found   
    Consult the following stack trace for details.    
    com.sun.tools.javac.code.Symbol$CompletionFailure: class file for dagger.hilt.android.internal.lifecycle.DefaultActivityViewModelFactory not found
  </code></pre>
  <p>A snippet of my build.gradle (project):</p>
  <pre><code>buildscript {
      ext.hilt_version = '2.33-beta'
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:4.1.3'
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32&quot;
          ...
          classpath &quot;com.google.dagger:hilt-android-gradle-plugin:$hilt_version&quot;
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          maven { url 'https://jitpack.io' }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  <p>A snippet of my build.gradle (app):</p>
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-parcelize'
  apply plugin: 'kotlin-kapt'
  apply plugin: 'dagger.hilt.android.plugin'
  
  android {
      compileSdkVersion 29
      ...
  
      defaultConfig {
          javaCompileOptions {
              annotationProcessorOptions {
                  arguments += [
                          &quot;room.schemaLocation&quot;: &quot;$projectDir/schemas&quot;.toString(),
                          &quot;room.incremental&quot;   : &quot;true&quot;
                  ]
              }
          }
      }
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      testOptions {
          execution 'ANDROIDX_TEST_ORCHESTRATOR'
      }
  
      buildFeatures {
          viewBinding true
          dataBinding true
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      ...
  
      //DI
      implementation &quot;com.google.dagger:hilt-android:$hilt_version&quot;
      implementation &quot;androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03&quot;
      implementation 'androidx.hilt:hilt-work:1.0.0-beta01'
      kapt &quot;com.google.dagger:hilt-compiler:$hilt_version&quot;
      kapt &quot;com.google.dagger:hilt-android-compiler:$hilt_version&quot;
      kapt 'androidx.hilt:hilt-compiler:1.0.0-beta01'
  
      // INSTRUMENTED TESTS
      ...
      androidTestImplementation &quot;com.google.dagger:hilt-android-testing:$hilt_version&quot;
      kaptAndroidTest &quot;com.google.dagger:hilt-android-compiler:$hilt_version&quot;
      androidTestImplementation &quot;androidx.work:work-testing:2.5.0&quot;
  
      //KOTLIN
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.32&quot;
  
      //LIFECYCLE
      implementation 'androidx.lifecycle:lifecycle-common-java8:2.3.1'
      implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
      implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
  
      // WORK MANAGER
      implementation &quot;androidx.work:work-runtime-ktx:2.5.0&quot;
  }
  </code></pre>
  <p>Does anyone meet that error and know what may be the solution?</p>