I have create a binding adapter to display picture with picasso, but it doesn't work. I have the following error :

> 
> Found data binding errors.
>  \*\*\*\*/ data binding error \*\*\*\*msg:Cannot find the setter for attribute 'app:loadPicture' with parameter type java.lang.String on
>  android.widget.ImageView.
>  file:/home/groupevsc.com/mathieu\_labar/Documents/Projects/android-jetpack/app/src/main/res/layout/activity\_detail\_movie.xml
>  loc:27:31 - 27:52 \*\*\*\*\ data binding error \*\*\*\*
> 
> 
> 

Here is my binding adapter :

```
object CommonBindingUtil {

    @JvmStatic
    @BindingAdapter("loadPicture")
    fun loadPicture(view: ImageView, text: String) {
        Picasso.with(view.context)
                .load(text)
                .error(R.drawable.ic_movie_24)
                .fit()
                .placeholder(R.drawable.ic_movie_24)
                .into(view)
    }

}

```

And my XML has attribute "app:loadPicture" :

```
<ImageView
    android:id="@+id/picture"
    android:layout_width="@dimen/material_image_simple_width"
    android:layout_height="wrap_content"
    android:adjustViewBounds="true"
    android:scaleType="fitXY"
    android:src="@drawable/ic_movie_24"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:loadPicture="@{viewModel.movie.Poster}"/>

```

Here is my GitHub repository:
<https://github.com/mlabar/android-jetpack/tree/tech_ajout_databinding>

Would anyone have an idea to solve my problem?

Thank you!