title: Could not resolve androidx.room:room-ktx:2.2.5
body: <p>I am trying to use Kotlin coroutines in conjunction with Room database. I've heavily referenced the <a href="https://developer.android.com/training/data-storage/room" rel="nofollow noreferrer">official Room docs</a> to achieve this. When I add the first two lines:</p>
  <pre><code>implementation &quot;androidx.room:room-runtime:$room_version&quot;
  kapt &quot;androidx.room:room-compiler:$room_version&quot;
  </code></pre>
  <p>in <code>dependencies{}</code>, everything is working perfectly.</p>
  <p>However, when I try to add the 3rd dependency <code>implementation androidx.room:room-ktx:$room_version</code>, all of a sudden my build fails and I get the following error:</p>
  <blockquote>
  <p>Unable to resolve dependency for
  ':common@debugAndroidTest/compileClasspath': Could not resolve
  androidx.room:room-ktx:2.2.5.</p>
  </blockquote>
  <p>I've tried cleaning the project and invalidate cache + restart, but the problem persists.</p>
  <p>Below is my current setup. Can anyone tell me what I am missing? Thanks!</p>
  <h3> Project Gradle </h3>
  <pre><code>allprojects {
  
      repositories {
          google()
          jcenter()
      }
  
  }
  </code></pre>
  <h3> Module Gradle </h3>
  <pre><code>apply plugin: 'kotlin-kapt'
  
  dependencies {
      def room_version = &quot;2.2.5&quot;
  
      implementation &quot;androidx.room:room-runtime:$room_version&quot;
      kapt &quot;androidx.room:room-compiler:$room_version&quot;
      implementation &quot;androidx.room:room-ktx:$room_version&quot;
  }
  </code></pre>