title: Cannot access 'androidx.lifecycle.HasDefaultViewModelProviderFactory' which is a supertype of 'FavoriteBottomDialogFragment'. Check your module cla
body: <p>I am getting error in the whole class that extends BottomSheetDialogFragment</p>
  
  <pre><code>Cannot access 'androidx.lifecycle.HasDefaultViewModelProviderFactory' which is a supertype of 'FavoriteBottomDialogFragment'. Check your module classpath for missing or conflicting dependencies
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/biDCw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/biDCw.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/1wC3n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1wC3n.png" alt="enter image description here"></a></p>
  
  <p>The class is in app module and this module implements two other modules : core and presentation-core</p>
  
  <p>build.gradle</p>
  
  <pre><code>dependencies {
  
       implementation fileTree(dir: 'libs', include: ['*.jar'])
       implementation project (':core')
       implementation project (':presentation-core')
  
       implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.41"
       implementation 'androidx.appcompat:appcompat:1.1.0'
       implementation 'androidx.core:core-ktx:1.2.0'
       testImplementation 'junit:junit:4.12'
       implementation "com.google.android.material:material:1.1.0"
  
       //Rx
       implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
       implementation "io.reactivex.rxjava2:rxjava:2.2.9"
       //Architecture component
       implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
       implementation 'androidx.room:room-runtime:2.0.0'
       kapt 'androidx.room:room-compiler:2.0.0'
       kapt 'androidx.lifecycle:lifecycle-common-java8:2.0.0'
       implementation 'androidx.room:room-rxjava2:2.0.0'
       implementation 'androidx.room:room-guava:2.0.0'
  
       implementation 'androidx.recyclerview:recyclerview:1.1.0'
       implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  
       androidTestImplementation 'androidx.test.ext:junit:1.1.1'
   }
  </code></pre>
  
  <p>core dependencies</p>
  
  <pre><code>dependencies {
       api fileTree(dir: 'libs', include: ['*.jar'])
       api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61"
       api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4"
       api 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.2'
       //library to serialize Java Objects between Contexts
       implementation 'org.parceler:parceler-api:1.1.11'
       kapt 'org.parceler:parceler:1.1.11'
  
       //testing dependencies
       testImplementation 'junit:junit:4.12'
       androidTestImplementation 'androidx.test.ext:junit:1.1.1'
       androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
       testImplementation "org.mockito:mockito-core:2.24.5"
       androidTestImplementation "org.mockito:mockito-android:2.24.5"
  
       //architecture component
       implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
       implementation "androidx.lifecycle:lifecycle-livedata:2.0.0"
  
       //RxJava2
       implementation "io.reactivex.rxjava2:rxjava:2.2.9"
       implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
  }
  </code></pre>
  
  <p>presentation-core</p>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61"
      implementation 'androidx.appcompat:appcompat:1.0.2'
      implementation 'androidx.core:core-ktx:1.0.2'
  }
  </code></pre>
  
  <p><strong>BottomSheetDialogFragment</strong>
  <a href="https://i.stack.imgur.com/a5MgU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/a5MgU.png" alt="enter image description here"></a></p>
  
  <p>Even with errors i got, I can run the project in a device</p>