Hello everyone, I have some question about kapt is...
# kapt
h
Hello everyone, I have some question about kapt issue. 1. I added requery’s annotation processor by kapt in gradle. 2. I just made my kotlin code like this, and it doesn’t have any annotations.
Copy code
interface Localization {
    companion object {
        fun factory(locale: Locale = Locale.KOREAN): Localization {
            when (locale) {
                // ...
                else -> {
                    throw UnsupportedOperationException("Unknown Locale.")
                }
            }
        }
    }

    val SIGNUP_SUBJECT: String
    val SIGNUP_BODY: ((UserEntity) -> String)
}
3. And when I build this project, I got error like this.
Copy code
e: /Users/Realignist/Workspace/evidnet-server/build/tmp/kapt3/stubs/main/kr/abmi/evidnet/Localization.java:17: error: cannot find symbol
e:

e:     public abstract Function1<UserEntity, java.lang.String> getSIGNUP_BODY();
e:                     ^
e:   symbol:   class Function1
e:   location: interface Localization
e: java.lang.IllegalStateException: failed to analyze: org.jetbrains.kotlin.kapt3.diagnostic.KaptError: Error while annotation processing