How I can get Kotlin's object from Java? When I do...
# getting-started
i
How I can get Kotlin's object from Java? When I do:
CustomObject myObject = CustomObject.INSTANCE;
I get error
cannot find symbol CustomObject
j
Maybe you forgot to import
CustomObject
in your Java file
Also this is an extensive SO answer about what such an error could mean: https://stackoverflow.com/a/25706217/1540818
i
I've added import to my CustomObject but there is error cannot find symbol import com.xyz.provider.CustomObject; CustomObject is in another package