Unresolved reference: GlideApp in activity written in Kotlin

Alex picture Alex · Feb 9, 2018 · Viewed 8k times · Source

In short my problem is that I can't use GlideApp (generated API) in an activity written in Kotlin.

Interesting enough that Android Studio sees the reference, i can open the generated GlideApp, there is code completion, but when I try to build it, then it fails with

"Unresolved reference: GlideApp"

The glide module was implemented in java since most of the apps are written in java.

Any idea?

Answer

karandeep singh picture karandeep singh · Feb 9, 2018

Are using kapt instead of annotationprocessor in gradle file? V4 Generated API support Kotlin