Eg: I have a java class First
First.java
`class First{
public static TAG = "test"
}`
Second.kt
`class Second{
First.TAG /*Error classifier First does not have a companion object,and thus must be initialized here*/
}`
So help me to call the static variable TAG declared in First.java inside Second.kt kotlin class
public static String TAGyou are missing StringFirst.TAGuse<your package>.First.TAGkotlinlang.org/docs/reference/java-interop.htmlvar someMember = First.TAGand why does TAG not have a type in your java class. I am guessing it's a String