Can I call Android or other Java language library APIs from Kotlin? Yes. Kotlin provides Java language interoperability .3 Kas 2020
Read moreShould you mix Java and Kotlin?
A few years later even Google understood it and made it an official language on Android. But there are a few things to keep in mind when mixing. The goal should be to move completely to Kotlin . Although blending Java and Kotlin works great you can’t write idiomatic Java nor Kotlin code when blending.
Read moreCan Java and Kotlin be used together?
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 .
Read more