Even if it’s interop you can’t mix Java and Kotlin in the same file . If you really want to have static methods/variables you can use an companion object . You can also access create a “real” static method in your JVM by using @JvmStatic .
Even if it’s interop you can’t mix Java and Kotlin in the same file . If you really want to have static methods/variables you can use an companion object . You can also access create a “real” static method in your JVM by using @JvmStatic .