title: Migrate to Jetpack Compose in a multi-module app
body: <p>I'm using Jetpack Compose. I have already used it and everything worked fine. I have configured Compose in the app module and in a feature module and in both modules I have imported the same library (see below).
  When I try to use it in another module, with the same configuration I get the error and all the solutions in <a href="https://stackoverflow.com/questions/66409744/the-compose-compiler-plugin-you-are-using-version-1-0-0-alpha13-expects-a-mini">here</a> do not apply:</p>
  <blockquote>
  <p>androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException:
  You are using an outdated version of Compose Runtime that is not
  compatible with the version of the Compose Compiler plugin you have
  installed. The compose compiler plugin you are using (version
  1.0.0-rc01) expects a minimum runtime version of 1.0.0-rc01.  at androidx.compose.compiler.plugins.kotlin.VersionChecker.outdatedRuntimeWithUnknownVersionNumber(VersionChecker.kt:113)
  at
  androidx.compose.compiler.plugins.kotlin.VersionChecker.check(VersionChecker.kt:78)
  at
  androidx.compose.compiler.plugins.kotlin.ComposeIrGenerationExtension.generate(ComposeIrGenerationExtension.kt:57)
  at
  org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory$convertToIr$1.invoke(JvmIrCodegenFactory.kt:120)
  at
  org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory$convertToIr$1.invoke(JvmIrCodegenFactory.kt:116)
  at
  org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:91)
  at
  org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:140)
  at
  org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr$default(JvmIrCodegenFactory.kt:66)
  at
  org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.generateModule(JvmIrCodegenFactory.kt:61)
  at
  org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:35)</p>
  </blockquote>
  <blockquote>
  <p>...</p>
  </blockquote>
  <p>I have added the following sections in the <code>build.gradle</code> file of the new module (as for the app module and the first module):</p>
  <pre><code>android {
      kotlinOptions {
          jvmTarget = &quot;1.8&quot;
          useIR = true
      }
  
      composeOptions {
          kotlinCompilerExtensionVersion Version.compose
          kotlinCompilerVersion Version.kotlin
      }
  
      buildFeatures {
          compose = true
      }
  }
  
  dependencies {
      implementation Compose.runtime
      implementation Compose.composeActivity
      implementation Compose.ui
      implementation Compose.material
      implementation Compose.uiTooling
      implementation Compose.livedata
      androidTestImplementation Compose.uiTest
  }
  
  </code></pre>
  <p>where</p>
  <pre><code>object Version {
      const val kotlin = &quot;1.5.10&quot;
      const val compose = &quot;1.0.0-rc01&quot;
      const val composeActivity = &quot;1.3.0-rc01&quot;
  }
  
  object Compose {
      const val runtime = &quot;androidx.compose.runtime:runtime:${Version.compose}&quot;
      const val composeActivity = &quot;androidx.activity:activity-compose:${Version.composeActivity}&quot;
      const val ui = &quot;androidx.compose.ui:ui:${Version.compose}&quot;
      const val material = &quot;androidx.compose.material:material:${Version.compose}&quot;
      const val uiTooling = &quot;androidx.compose.ui:ui-tooling:${Version.compose}&quot;
      const val uiTest = &quot;androidx.compose.ui:ui-test-junit4:${Version.compose}&quot;
      const val livedata = &quot;androidx.compose.runtime:runtime-livedata:${Version.compose}&quot;
  }
  </code></pre>
  <p>The second module in which I'm trying to add Jetpack Compose has many more dependencies.
  Is it possible that the issue is with one of the dependencies?</p>