Using annotation frames in Kotlin does not work.
The problem uses the annotation framework in Kotlin and finds that the annotated fields are not valid at compile time. Because Kotlin is based on the jvm runtime development language, you need to introduce annotated environment solutions to it separately: this way is based on Gradle, such as using the development tool InterJect,Android Studio, other configuration Gradle compilation environment; just add the kapt plug-in and the corresponding annotation processing in the Module of the Kotlin or the build.gradle file of the program.
Steps:
1. Introduce the annotation plug-in of kotlin into the program or Module
2. Add annotation dependency handling (annotationProcessor may have been used previously, just replace it)