AndroidAnnotations - ViewById cannot be used on a private element

Viewed 1106

AndroidAnnotations version: 4.3.1

Android compile SDK version: 26

Kotlin version: 1.1.3-2

I am trying to build app using Kotlin and AndroidAnnotaions. The build ends with

Error:Execution failed for task ':app:kaptDebugKotlin'. > Internal compiler error. See log for more details

in androidannotations.log a is a ton of erros like

00:10:43.908 [RMI TCP Connection(91)-127.0.0.1] ERROR o.a.i.p.ModelValidator:77 - org.androidannotations.annotations.ViewById cannot be used on a private element

thats the usage of @ViewById annotation

@ViewById
var description: TextView? = null

The same also happens with Pref annotated vars.

Is anybody else facing the same issue or it's just me?

1 Answers
Related