Hey I am not able to use String.format in Shared m...
# multiplatform
h
Hey I am not able to use String.format in Shared module that is powered by KMM. Does anyone has any clue?
v
String.format() comes from Java:
Copy code
java.lang.String.format(locale, format, *args)
You can’t use that in Kotlin.
Well you can use it in Kotlin as long as it's targeting the JVM only
v
Yes, true. I assume you don’t just use JVM
e
https://youtrack.jetbrains.com/issue/KT-25506 it has been requested, but String.format is pretty huge and complex, and you probably don't need all of it. what do you actually want to achieve?
626 Views