Kotlin Binding Dagger Lazy Adapter Cannot find the setter


#1

After convert java files to kotlin

****/ data binding error ****msg:Cannot find the setter for attribute ‘app:adapter’ with parameter type dagger.Lazy<com.lanet.usercabinet.adapters.AdapterWithdrawal> on android.support.v7.widget.RecyclerView.
file:C:\Workspace\cabinet\app\src\main\res\layout\fragment_score_withdrawal.xml

I use dagger2+DataBinding+Kotlin

@Inject
lateinit var adapterWithdrawal: Lazy<AdapterWithdrawal>

@Bindable
fun getAdapterWithdrawal(): AdapterWithdrawal = adapterWithdrawal.get()

in xml for adapter
app:adapter="@{withdrawalVM.adapterWithdrawal}"

rebuild or clean or invalidecache does not help


#2

but… ok if without LAZY((


#4

@Inject
lateinit var adapterWithdrawal: AdapterWithdrawal
@Bindable get

this work without Lazy
and without this
@Bindable
fun getAdapterWithdrawal(): AdapterWithdrawal = adapterWithdrawal.get()