title: How to get an item from a RealmList using android databinding
body: <p>I have a Car class implemented like this :</p>
  
  <pre><code>        public class Car extends RealmObject implements Serializable {
         @SerializedName("car_details")
          @Expose
          private RealmList&lt;CarDetail&gt; carDetails = null;
    public RealmList&lt;CarDetail&gt; getCarDetails() {
          return carDetails;
      }
  
      public void setCarDetails(RealmList&lt;CarDetail&gt; carDetails) {
          this.carDetails = carDetails;
      }
      }
  </code></pre>
  
  <p>in My trying to access my carDetails  from my Layout like this :</p>
  
  <pre><code>&lt;TextView
                                                        android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_margin="8dp"
                              android:text="@{car.carDetails.get(0).grade}"
                              android:textAllCaps="true"
                              android:textColor="@color/black"
                              android:textSize="30sp"
                              android:textStyle="bold" /&gt;
  </code></pre>
  
  <p>but i'm getting an error when compiling , any suggestions how to access the list?</p>
  
  <p>i also tried with :</p>
  
  <pre><code>android:text="@{car.carDetails[0].grade}"
  </code></pre>
  
  <p>I'm getting an error like this :</p>
  
  <pre><code>error: package me.test.databinding does not exist
  </code></pre>
  
  <p>It's cannot generate the databinding classes </p>
  
  <p>Capture from the error:
  <a href="https://i.stack.imgur.com/854MQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/854MQ.png" alt="enter image description here"></a></p>