Can I reference Java interface fields from Kotlin? I have this Java interface:
public interface BaseColumns {
public static final String _ID = "_id";
public static final String _COUNT = "_count";
}
And I implement it in Kotlin:
object UserEntry : BaseColumns {
// some code
}
I get Unresolved reference when I try UserEntry._ID
. How can I access the _ID
? Am I missing something? Thanks!