title: Android Cannot resolve symbol '?attr/selectableItemBackground'
body: <pre><code>&lt;android.support.v7.widget.CardView
      android:id="@+id/card_view"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginLeft="@dimen/card_outer_padding"
      android:layout_marginTop="@dimen/card_outer_padding"
      android:layout_marginRight="@dimen/card_outer_padding"
      android:layout_marginBottom='@{model.cardBottomMargin}'
      android:foreground="?attr/selectableItemBackground"
      android:onClick="@{model::onCardClick}"
      app:cardElevation="2dp"
      app:cardCornerRadius="2dp"
      app:cardUseCompatPadding="true"&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>I got this error message </p>
  
  <p>Cannot resolve symbol <code>?attr/selectableItemBackground</code>
  Validates resource references inside Android XML files.</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/country_name"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginRight="40dp"
      android:text="@{model.name}"
      style="@style/TextAppearance.AppCompat.Headline"
      tools:text="Country"/&gt;
  </code></pre>
  
  <p>And, I got a similar error for the above as well</p>
  
  <p>Cannot resolve symbol '@style/TextAppearance.AppCompat.Headline'<br>
  Validates resource references inside Android XML files.</p>
  
  <p>Any pointer would be great! Thank you!
  It seems to be related to this <a href="https://stackoverflow.com/questions/17870303/ide-cannot-resolve-style-theme-appcompat-when-using-v7-compatibility-support">thread</a> but no solution was provided:</p>