https://kotlinlang.org logo
Title
a

Ayden

07/25/2018, 5:49 AM
Then I wil receive the error state that binding not found.
g

gildor

07/25/2018, 5:50 AM
Did you add binding compiler to kapt dependencies?
a

Ayden

07/25/2018, 5:50 AM
You mean kotlin-kapt?
Or you mean
kapt "com.android.databinding:compiler:3.1.3"
?
g

gildor

07/25/2018, 5:51 AM
Yes
kapt “com.android.databinding:compiler….”
a

Ayden

07/25/2018, 5:51 AM
I added this.
g

gildor

07/25/2018, 5:53 AM
Than you have some other bindings generation error, check your Gradle build logs
And of course you should apply “kotlin-kapt” plugin, but I suppose you already do this too
a

Ayden

07/25/2018, 6:02 AM
Why I always obtain this kind of error message when I added
kotlin-kapt
into gradle?
kotlin 3rd-party gradle plug-ins may be the cause
g

gildor

07/25/2018, 6:06 AM
Looks like something not related to Kapt
Did you tried to build from command line?