title: How to solve java.lang.NoSuchFieldError: No field Companion of type Landroidx/compose/runtime/SlotTable$Companion?
body: <p>I am getting this error multiple times in all my Jetpack compose projects. Is this error an issue related to the Gradle? Because I have not changed anything to the Theme.</p>
  <pre class="lang-java prettyprint-override"><code>java.lang.NoSuchFieldError: No field Companion of type Landroidx/compose/runtime/SlotTable$Companion; in class Landroidx/compose/runtime/SlotTable; or its superclasses (declaration of 'androidx.compose.runtime.SlotTable' appears in /data/app/~~-cK_xmGsJokhf6B_7aQseg==/com.swetajain.library-CN37OSea3A4uAWXYCBb63w==/base.apk)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/vTskn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vTskn.png" alt="Logs" /></a></p>
  <p>app.build.gradle</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.2.1'
      implementation &quot;androidx.compose.ui:ui:$compose_version&quot;
      implementation &quot;androidx.compose.material:material:$compose_version&quot;
      implementation &quot;androidx.ui:ui-tooling:$compose_version&quot;
      implementation &quot;androidx.compose.runtime:runtime:$compose_version&quot;
      implementation &quot;androidx.compose.foundation:foundation:$compose_version&quot;
      implementation &quot;androidx.compose.foundation:foundation-layout:$compose_version&quot;
      implementation &quot;androidx.compose.runtime:runtime-livedata:$compose_version&quot;
      implementation &quot;com.google.android.material:compose-theme-adapter:$compose_version&quot;
      api 'com.github.bumptech.glide:glide:4.11.0'
      implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.0-beta01'
      implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01@aar'
      implementation 'androidx.activity:activity-ktx:1.2.0-beta01@aar'
      implementation &quot;dev.chrisbanes.accompanist:accompanist-coil:0.3.3.1&quot;
      def nav_compose_version = &quot;1.0.0-alpha02&quot;
      implementation &quot;androidx.navigation:navigation-compose:$nav_compose_version&quot;
      testImplementation 'junit:junit:4.+'
      androidTestImplementation 'androidx.test.ext:junit:1.1.2'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  }
  </code></pre>
  <p>build.gradle -Project</p>
  <pre><code>buildscript {
  
      ext.compose_version = '1.0.0-alpha04'
      ext.kotlin_version = &quot;1.4.20&quot;
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath &quot;com.android.tools.build:gradle:4.2.0-alpha16&quot;
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/NQPVD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NQPVD.png" alt="gradle\wrapper\gradle-wrapper.properties" /></a></p>