title: How to access RecyclerView in androidx?
body: <p>Hi I'm new to Android development and I'm trying out a tutorial on MVVM I found on YouTube. The example project in the video uses AppCompat but I converted mine to androidx because from what I read its the current(?) version to use? Am I mistaken with this thinking?</p>
  
  <p>Anyways Part of the tutorial makes use of a RecyclerView and I can't access it on my activity_main.xml file stating that v7 is an unresolved package. <code>android.support.v7.widget.RecyclerView</code> shows up with v7 onwards as red text. I know I can revert it back to older versions but I guess I am trying to make this work since moving forward its expected to know how to use androidx right? </p>
  
  <p>I don't know how to add the RecyclerView to the project with my current project migrated to androidx.</p>
  
  <p><strong>What I've tried:</strong></p>
  
  <ul>
  <li>Adding <code>implementation 'com.android.support:recyclerview-v7:28.0.0'</code> based on the docs</li>
  <li>Invalidating cache and restarting</li>
  </ul>
  
  <p><strong>My Dependencies:</strong></p>
  
  <pre><code>dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'androidx.appcompat:appcompat:1.1.0-alpha04'
      implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
      implementation 'androidx.cardview:cardview:1.0.0'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
  
      //RecyclerView
      implementation 'com.android.support:recyclerview-v7:28.0.0'
  
  
      // Lifecycle components
      implementation "androidx.lifecycle:lifecycle-extensions:2.1.0-alpha04"
      annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.1.0-alpha04"
  
      // Room Components
      implementation "androidx.room:room-runtime:2.1.0-alpha06"
      annotationProcessor "androidx.room:room-compiler:2.1.0-alpha06"
  }
  </code></pre>
  
  <p><strong>My activity_main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;view class="android.support.v7.widget.RecyclerView"
          android:id="@+id/recycler_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          tools:listitem="@layout/todo_item"/&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>