title: Unresolved reference: RecyclerView when trying to inherit Adapter
body: <p>I am trying to make a RecyclerView in Android Studio and I am struggling to inherit from RecyclerView.Adapter&lt;>()</p>
  
  <p>This is the fragment of code that contains the problem:</p>
  
  <pre><code>package Adapters
  
  import androidx.appcompat.app.AppCompatActivity
  import androidx.recyclerview.R
  import android.os.Bundle
  import models.Post
  
  class PostAdapter(private val postList: List&lt;Post&gt;, private val content: String) : RecyclerView.Adapter&lt;PostAdapter.PostViewHolder&gt;() {
  </code></pre>
  
  <p>Android Studio sets "RecyclerView" red and I can't get rid of it. I tried solutions from other posts on stackoverflow, tried to follow tutorials on the internet, but there isn't anything about androidx and I can't use older version (android.support.v7.widget.RecyclerView), because Android Studio won't let me.
  I imported RecyclerView in mains build.gradle: </p>
  
  <pre><code>implementation "androidx.recyclerview:recyclerview:1.1.0"
  </code></pre>
  
  <p>And added google() in the highest-instance build.gradle
  I hope I explained the problem properly and you can help me.</p>