룬아님의 취중코딩

BindingAdapter가 작동하지 않을 때 본문

개발/안드로이드 개발

BindingAdapter가 작동하지 않을 때

룬아님 2019. 10. 12. 01:15
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 ****

처음으로 바인딩 어뎁터를 등록한 이후 위와 같은 에러가 난다면
앱수준의 build.gradle에

apply plugin: 'kotlin-kapt'

위의 코드가 있는지 확인하고 없으면 추가하면 해결된다.

반응형
Comments