Execution failed: cannot find setter for attribute **EDITED**

Problem with tutorial and cloned code. Android Studio 3.1

Error:Execution failed for task ‘:media:compileDebugJavaWithJavac’.
android.databinding.tool.util.LoggedErrorException: Found data binding errors.
****/ data binding error ****msg:Cannot find the setter for attribute ‘algolia:attribute’ with parameter type java.lang.String on android.widget.ImageView.
file:C:\Users\sasha\AndroidStudioProjects\instantsearch-android-examples\media\src\main\res\layout\hits_item.xml
loc:22:33 - 22:43
****\ data binding error ****
I solved this issue. It happened because Android Studio had automaticly updated gradle plugin to 3.1.0 version. Couldn’t you make this project on new version of gradle, plugins etc?

hey friend,i have same issue
Error:Execution failed for task ‘:app:compileDebugJavaWithJavac’.

java.lang.RuntimeException: Found data binding errors.
****/ data binding error ****msg:Cannot find the setter for attribute ‘algolia:attribute’ with parameter type java.lang.String on android.widget.TextView.
file:D:\MaterialDesign4-poslednje30\app\src\main\res\layout\hits_item.xml
loc:91:33 - 91:39
****\ data binding error ****
please,can you help me,how to fix this?

They have already fixed it in 1.1.4.

1 Like