title: Two-way data binding Android. Cannot find a getter for <> that accepts parameter type ''
body: <p>I am building my first android app based on an Udemy Course. It is a gym tracking app. I am trying to add functionality where the user can edit the entries in a recycler view. I am using data binding therefore I assumed that the data was going to be updated automatically. I found out that there is two-way data binding.</p>
  <p>I get the error &quot; Cannot find a getter for &lt;&gt; that accepts parameter type &quot; when i add the '=' sign to indicate two-way data binding</p>
  <p>this is my editText layout:
  '''</p>
  <pre><code>                android:id=&quot;@+id/reps_field&quot;
                  android:layout_width=&quot;125dp&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:gravity=&quot;center&quot;
                  android:text=&quot; 50 &quot;
                  android:inputType=&quot;number&quot;
                  tools:layout_editor_absoluteX=&quot;107dp&quot;
                  tools:layout_editor_absoluteY=&quot;629dp&quot;
                  app:reps_field=&quot;@={workingset}&quot;/&gt;'''
  </code></pre>
  <p>Here is my Adapter which i was using to only display the data in a textView</p>
  <pre><code>@BindingAdapter(&quot;reps_field&quot;)
  fun TextView.setReps(item: Workout?) {
      item?.let {
          text = item.reps.toString()
      }
  }
  </code></pre>
  <p>Here is a link to the Github repo if that helps
  <a href="https://github.com/anthony-ruiz/my-workout-tracker" rel="nofollow noreferrer">https://github.com/anthony-ruiz/my-workout-tracker</a></p>
  <p>My goal is to be able to save the changes in the data to the database</p>