title: How to solve "Cannot access androidx.activity.contextaware.ContextAware'"?
body: <p>I'm building a simple application using LiveData and viewmodels but iam getting the following warning messages in my activity surrodning my activity some of the warning</p>
  <p><strong>Cannot access 'androidx.activity.contextaware.ContextAware' which is a supertype of 'com.example.movies.presentation.home.MoviesActivity'. Check your module classpath for missing or conflicting dependencies</strong></p>
  <pre><code>  dependencies {
      
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version&quot;
      implementation 'androidx.core:core-ktx:1.3.2'
      implementation 'androidx.appcompat:appcompat:1.2.0'
      implementation 'com.google.android.material:material:1.3.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test.ext:junit:1.1.2'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  
      // ViewModel
      implementation &quot;androidx.lifecycle:lifecycle-viewmodel-ktx:$life_cycle_version&quot;
  
      // LiveData
      implementation &quot;androidx.lifecycle:lifecycle-livedata-ktx:$life_cycle_version&quot;
  
      implementation &quot;androidx.lifecycle:lifecycle-extensions:2.2.0&quot;
      kapt &quot;androidx.lifecycle:lifecycle-compiler:$life_cycle_version&quot;
  
      // Hilt
      implementation &quot;com.google.dagger:hilt-android:$hilt_version&quot;
      implementation &quot;androidx.lifecycle:lifecycle-viewmodel-ktx:$life_cycle_version&quot;
      kapt &quot;com.google.dagger:hilt-android-compiler:$hilt_version&quot;
  
      //moshi
      implementation(&quot;com.squareup.moshi:moshi:$moshi_version&quot;)
      kapt(&quot;com.squareup.moshi:moshi-kotlin-codegen:$moshi_version&quot;)
  
      //retrofit
      implementation &quot;com.squareup.retrofit2:retrofit:$retrofit_version&quot;
      implementation &quot;com.squareup.retrofit2:converter-moshi:$retrofit_version&quot;
      implementation(&quot;com.squareup.okhttp3:logging-interceptor:$okhttp_version&quot;)
  
      //espresso testing
      androidTestImplementation &quot;androidx.test.espresso:espresso-core:$espresso_core&quot;
      androidTestImplementation &quot;androidx.test:runner:$test_runner&quot;
      androidTestImplementation &quot;androidx.test:rules:$test_runner&quot;
  
      // Hilt For instrumentation tests
      androidTestImplementation &quot;com.google.dagger:hilt-android-testing:$hilt_testing&quot;
      androidTestAnnotationProcessor &quot;com.google.dagger:hilt-compiler:$hilt_testing&quot;
  
      //Hilt For local unit tests
      testImplementation &quot;com.google.dagger:hilt-android-testing:$hilt_testing&quot;
      testAnnotationProcessor &quot;com.google.dagger:hilt-compiler:$hilt_testing&quot;
  
      //mockk for testing
      testImplementation &quot;io.mockk:mockk:$mockk_version&quot;
  
      //coroutine testing
      testImplementation &quot;org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutine_test_version&quot;
  
      testImplementation(&quot;org.junit.jupiter:junit-jupiter-api:$junit_5&quot;)
      testRuntimeOnly(&quot;org.junit.jupiter:junit-jupiter-engine:$junit_5&quot;)
  
      testImplementation &quot;android.arch.core:core-testing:$arch_version&quot;
  </code></pre>
  <p>my module build.gradle</p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      ext.kotlin_version = &quot;1.4.31&quot;
      ext.hilt_version = '2.31.2-alpha'
      ext.junit = '1.7.1.1'
  
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:4.1.3'
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
          classpath &quot;com.google.dagger:hilt-android-gradle-plugin:$hilt_version&quot;
          classpath &quot;de.mannodermaus.gradle.plugins:android-junit5:$junit&quot;
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  ext {
      life_cycle_version = &quot;2.2.0&quot;
      espresso_core = &quot;3.3.0&quot;
      test_runner = &quot;1.3.0&quot;
      hilt_testing = &quot;2.33-beta&quot;
      moshi_version = &quot;1.10.0&quot;
      mockk_version = &quot;1.11.0&quot;
      retrofit_version = &quot;2.9.0&quot;
      okhttp_version = &quot;4.9.0&quot;
      coroutine_test_version = &quot;1.4.3&quot;
      junit_5 = &quot;5.7.1&quot;
      arch_version = &quot;2.2.0&quot;
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/HzmPH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HzmPH.png" alt="enter image description here" /></a></p>