<Kotlin: Obfuscated Callable Expects 2 Arguments b...
# stackoverflow
r
Kotlin: Obfuscated Callable Expects 2 Arguments but 1 Provided (DefaultConstructorMarker Issue) I’m encountering an issue in Kotlin when obfuscation is enabled, specifically when calling a function dynamically using KFunction.callBy. The code works fine in a non-obfuscated environment but fails once obfuscation is applied. data class User( val name: String ) private fun buildObject( ... constructor: KFunction, ): T { val params = constructor.valueParameters.mapIndexed { index, param -> val res = getValueForParam() param to res }.toMap() return...