codelab-android-databinding icon indicating copy to clipboard operation
codelab-android-databinding copied to clipboard

Page 7 doesn't mention dependency on kotlin-kapt

Open JakeSteam opened this issue 6 years ago • 1 comments

Not high priority as I was incorporating the tutorial into an existing project, not using the base project.

However, Step 7 fails with an error similar to:

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:hideIfZero'

The solution is adding apply plugin: 'kotlin-kapt' to the build.gradle, but this is not mentioned anywhere.

JakeSteam avatar Jul 23 '19 21:07 JakeSteam

Thanks, I spent lots of time for this trouble but the information you shared is totally right solution.

libliboom avatar Dec 09 '19 07:12 libliboom