When referencing a java class file in Kotlin code,...
# android
n
When referencing a java class file in Kotlin code, the IDE shows "Unresolved reference Java" error. Example: val apiInterface = retrofitInstance.create<APIEndpointInterface>(APIEndpointInterface::class.java) Even though it compiles fine, it's very annoying to see red lines everywhere in your IDE.