title: Adding dependency to androidx.fragment:fragment-ktx:1.3.0-beta01 causes runtime exception
body: <p>I need to add a dependency to <strong>androidx.fragment:fragment-ktx:1.3.0-beta01</strong> in an app that uses Android navigation and dynamic features. I need the dependency to call <code>setFragmentResult</code>, but the app would stop working with an exception of</p>
  <blockquote>
  <p>&quot;no class definition found&quot;</p>
  </blockquote>
  <p>At runtime. Please help...</p>
  <p><strong>UPDATE</strong></p>
  <p>This is my app build gradle</p>
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply plugin: 'kotlin-android-extensions'
  apply plugin: 'kotlin-kapt'
  apply plugin: &quot;androidx.navigation.safeargs.kotlin&quot;
  
  android {
      compileSdkVersion 29
  
      defaultConfig {
          applicationId &quot;it.kfi.lorikeetmobile&quot;
          minSdkVersion 25
          targetSdkVersion 29
          versionCode 2
          versionName &quot;1.0b&quot;
          multiDexEnabled true
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
  
          /*javaCompileOptions {
              annotationProcessorOptions {
                  arguments = [
                          &quot;room.incremental&quot;:&quot;true&quot;,
                          &quot;room.expandProjection&quot;:&quot;true&quot;]
              }
          }*/
      }
  
      //kotlin DSL
  //    configurations.all {
  //        resolutionStrategy {
  //            force(&quot;org.antlr:antlr4-runtime:4.7.1&quot;)
  //            force(&quot;org.antlr:antlr4-tool:4.7.1&quot;)
  //        }
  //    }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
  
  // To inline the bytecode built with JVM target 1.8 into
  // bytecode that is being built with JVM target 1.6. (e.g. navArgs)
  
  
      compileOptions {
          // Flag to enable support for the new language APIs
          coreLibraryDesugaringEnabled true
          // Sets Java compatibility to Java 8
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      kotlinOptions {
          jvmTarget = &quot;1.8&quot;
      }
  
      /*dataBinding {
          enabled = true
      }*/
  
      kapt { generateStubs = true }
  
      buildFeatures {
          dataBinding = true
          viewBinding = true
      }
  
      dynamicFeatures = [&quot;:jay&quot;, &quot;:stock&quot;, &quot;:meddler&quot;, ':goods', ':flash', ':inventory', ':harry', ':louis', ':avery']
      buildToolsVersion buildToolsVer
      //kotlin DSL
      /*configurations.all {
          resolutionStrategy {
              force(&quot;org.antlr:antlr4-runtime:4.7.1&quot;)
              force(&quot;org.antlr:antlr4-tool:4.7.1&quot;)
          }
      }*/
  }
  
  dependencies {
  
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version&quot;
      implementation 'androidx.appcompat:appcompat:1.2.0'
      implementation 'androidx.core:core-ktx:1.3.2'
      implementation 'com.google.android.material:material:1.2.1'
  
      implementation 'androidx.viewpager2:viewpager2:1.0.0'
  
      api 'androidx.constraintlayout:constraintlayout:2.0.4'
      implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
      testImplementation 'junit:junit:4.13.1'
      androidTestImplementation 'androidx.test.ext:junit:1.1.2'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  
      coreLibraryDesugaring &quot;com.android.tools:desugar_jdk_libs:$desugar_ver&quot;
  
      api &quot;androidx.navigation:navigation-ui-ktx:$nav_version&quot;
      api &quot;androidx.navigation:navigation-fragment-ktx:$nav_version&quot;
      api &quot;androidx.navigation:navigation-dynamic-features-fragment:$nav_version&quot;
  
      api &quot;org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9&quot;
  
      //ROOM
      kapt &quot;androidx.room:room-runtime:$room_version&quot;
      //kapt &quot;android.arch.persistence.room:compiler:$room_version&quot;
      kapt &quot;androidx.room:room-compiler:$room_version&quot; // For Kotlin use kapt instead of annotationProcessor
  
      // optional - Kotlin Extensions and Coroutines support for Room
      implementation &quot;androidx.room:room-ktx:$room_version&quot;
      //implementation &quot;androidx.room:room-coroutines:$room_version&quot;
  
      // optional - RxJava support for Room
      implementation &quot;androidx.room:room-rxjava2:$room_version&quot;
  
      // optional - Guava support for Room, including Optional and ListenableFuture
      implementation &quot;androidx.room:room-guava:$room_version&quot;
  
      // Test helpers
      testImplementation &quot;androidx.room:room-testing:$room_version&quot;
  
  
      //PAGING
      //implementation &quot;androidx.paging:paging-runtime:$paging_version&quot;
      implementation &quot;androidx.paging:paging-runtime-ktx:$paging_version&quot;
  
      kapt &quot;com.android.databinding:compiler:3.1.4&quot;
  
      api 'com.squareup.retrofit2:converter-gson:2.9.0'
      api 'com.squareup.retrofit2:retrofit:2.9.0'
      api 'com.squareup.okhttp3:logging-interceptor:4.9.0'
  
      api &quot;org.jetbrains.kotlin:kotlin-reflect:$kotlin_version&quot;
  
      implementation project(path: ':avatarLib')
      implementation project(path: ':ScanditCaptureCore')
      implementation project(path: ':ScanditLabelCapture')
  
      implementation &quot;androidx.recyclerview:recyclerview-selection:1.1.0-rc03&quot;
      implementation &quot;androidx.cardview:cardview:1.0.0&quot;
      implementation &quot;androidx.paging:paging-runtime-ktx:$paging_version&quot;
  
      implementation &quot;androidx.fragment:fragment-ktx:1.3.0-beta01&quot;
  }
  </code></pre>
  <p>UPDATE 2</p>
  <p>If I move the dependency from the Dynamic Feature that actually uses it to the main app (app gradle), the app doesn't start and I get the following exception:</p>
  <p>Unable to start activity</p>
  <blockquote>
  <p>ComponentInfo{it.kfi.lorikeetmobile/it.kfi.lorikeetmobile.ui.MainActivity}:
  android.view.InflateException: Binary XML file line #12: Binary XML
  file line #11: Error inflating class fragment</p>
  </blockquote>
  <p>.... I do not understand what to do more</p>