Cannot find the setter for attribute with parameter
<p>I am working on <code>DataBinding</code> with <code>BindingAdapter</code>. Here is my custom method.</p>

<pre><code>@BindingAdapter("{bind:fadevisible}")
public static void setFadeVisible(LinearLayout view, int visible) {
    Log.e("Bindings", "setFadeVisible: ");
}
</code></pre>

<p>And in xml file i am calling it like</p>

<pre><code>&lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        app:fadevisible="@{1}"/&gt;
</code></pre>

<p>But it is showing error</p>

<blockquote>
  <p>Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
   java.lang.RuntimeException: Found data binding errors.
  ****/ data binding error ****msg:Cannot find the setter for attribute 'app:fadevisible' with parameter type int on android.widget.LinearLayout.
  file:\app\src\main\res-main\layout\activity_detail.xml
  loc:236:31 - 236:54
  ****\ data binding error ****</p>
</blockquote>

<p>I have checked <a href="https://stackoverflow.com/questions/34016633/android-data-binding-cant-find-the-setter-for-attribute">this</a> and <a href="https://stackoverflow.com/questions/32520759/android-data-binding-errorexecution-failed-java-lang-runtimeexception">this</a> thread but somehow it is not helping me, as you can see i am passing <code>int</code> from xml and in <code>BindingAdapter</code> also i have mentioned <code>LinearLayout</code> with <code>int</code> value.</p>

<p>Even i have another method, where just parameters are different and its working fine</p>

<pre><code>@BindingAdapter({"bind:image_round"}) 
public static void loadRoundImage(ImageView imageView, String url)
</code></pre>