Is reflection handled differently between Android ...
# announcements
a
Is reflection handled differently between Android and iOS with Kotlin Multiplatform? Accessing the 'constructors' val from KClass returns "Unresolved reference: constructors" when building the iOS variant, but doesn't complain for the Android variant. I've tried also adding the reflect dependency in case.
Example:
Copy code
private fun <T : Any> createImplementation(apiInterface: KClass<T>, className: String): T {
    try {
        val ctor = apiInterface.constructors.first { it.parameters.isEmpty() }
returns "Unresolved reference: constructors" when building the iOS variant.