I have a Kotlin Code just like the below, SingleKotlin.instance
can be called by the other Kotlin files
class SingleKotlin private constructor(){
companion object {
val instance by lazy {
SingleKotlin()
}
}
}
However, when I try to call SingleKotlin.instance
from java, it shows can't resolve symbol 'instance'
I don't understand why, anybody can explian and how can I solve this problem?