Why am I getting "Destructuring declaration initia...
# announcements
k
Why am I getting "Destructuring declaration initializer of type android.util.Pair<kotlin.String, kotlin.Any?> must have a 'component1()' function. Destructuring declaration initializer of type android.util.Pair<kotlin.String, kotlin.Any?> must have a 'component2()' function. " when doing the following:
Copy code
for ((key, value) in values) {
        when (value) {
            is IBinder -> obj.putBinder(key, value)
            is Bundle -> obj.putBundle(key, value)
        }
    }