James Yox
03/23/2026, 12:44 AMcom.android.tools.r8.internal.Yf: Field name '$$context-FlowCollector#1' cannot be represented in dex format. but only on the android target (makes sense since this appears related to dexing). I am guessing that at some point the # is being used for a param name which dex doesn't like. Simple reproducer in thread.James Yox
03/23/2026, 12:44 AMfun beginTest() {
context(
FlowCollector<Throwable> { it.printStackTrace() },
FlowCollector<SomeType> { }
) {
CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch {
test()
}
}
}
context(
one: FlowCollector<Throwable>,
two: FlowCollector<SomeType>
)
fun test() {
println(one)
println(two)
}
data object SomeTypeJames Yox
03/23/2026, 12:45 AMfun beginTest() {
CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch {
context(
FlowCollector<Throwable> { it.printStackTrace() },
FlowCollector<SomeType> { }
) {
test()
}
}
}dmitriy.novozhilov
03/23/2026, 8:31 AMJames Yox
03/23/2026, 2:14 PMJames Yox
03/24/2026, 12:48 AM