我需要将 KotlinPair
作为参数传递。
<argument android:name="data" app:argType="kotlin.Pair" />
e: CreateCodeFragmentDirections.kt: (16, 15): 2 type arguments expected for class Pair<out A, out B>
<argument android:name="data" app:argType="kotlin.Pair<String, String>" />
Cause: markup not allowed inside attribute value - illegal < (position: TEXT seen ...<argument android:name="data" app:argType="kotlin.Pair<... @132:30)
<argument android:name="data" app:argType="kotlin.Pair<String, String>" />
Can't escape identifier `Pair<String, String>` because it contains illegal characters: <>
以上尝试均未奏效。我该怎么做?