Kotlin/kotlin-examples

Kotlin + Databinding throw no viable alternative at input '??'

epolar opened this issue · 0 comments

I ask on StackOverFlow
My problem is when I use DataBinding and Kolin on AndroidStudio 3.1.1, I have Chinese Character on TextView text attribute on my layout xml.
When I run by AndroidStudio shortcut ^R, I get an error like Syntax error: no viable alternative at input '??' , But run ./gradlew assembleDebug I get correct result.
When I get error, kapt generate Binding class for layout xml, on that file, I sat ?????? character, is my Chinese character if correct result.

And Please excuse my poor English.