kotlin-examples icon indicating copy to clipboard operation
kotlin-examples copied to clipboard

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

Open epolar opened this issue 7 years ago • 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.

epolar avatar Apr 18 '18 09:04 epolar