title: Android DataBinding error. Could not find accessor
body: <p>I'm getting the following error when I try to run my app:</p>
  
  <pre><code>Error:Execution failed for task ':app:compileDevelopmentDebugJavaWithJavac'.
  &gt; java.lang.RuntimeException: Found data binding errors.
  ****/ data binding error ****msg:Could not find accessor java.lang.String.giftRecipientName redacted.xml loc:182:63 - 182:93 ****\ data binding error ****
  </code></pre>
  
  <p>I have an Order object which looks like this:</p>
  
  <pre><code>public class Order {
      public Address address;
      // unrelated fields and methods
  }
  </code></pre>
  
  <p>The nested Address object looks like this:</p>
  
  <pre><code>public class Address {
      public String addressLine1;
      public String addressLine2;
      public String giftRecipientName;
      public Boolean isGift;
  }
  </code></pre>
  
  <p>In my .xml I am doing the following:</p>
  
  <pre><code>&lt;layout xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;data&gt;
          &lt;variable name="order" type="example.redacted.models.Order"/&gt;
      &lt;/data&gt;
      // widgets and whatnot
      &lt;TextView
          android:id="@+id/gift_recipientTV"
          android:layout_column="1"
          android:layout_weight="1"
          android:layout_width="0dp"
          android:textStyle="bold"
          android:gravity="right"
          android:text='@{order.address.isGift ?  order.address.giftRecipientName : "" }'/&gt;
  </code></pre>
  
  <p>Lastly in my fragment:</p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      RedactedBinding dataBinding = DataBindingUtil.inflate(inflater, R.layout.redacted, container, false);
      dataBinding.setOrder(_order);
      return dataBinding.getRoot();
  }
  </code></pre>