Halil Ozercan
08/13/2020, 8:27 PMe: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't transform method node:
NewItem (Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;III)V:
It is hard for me to pinpoint exactly where it goes wrong because the stacktrace is rather large and there are no warnings on Android Studio. I'm sharing a gist which includes the whole stacktrace.
https://gist.github.com/halilozercan/303908615b54f1bc29e6355515545018Halil Ozercan
08/13/2020, 8:33 PMrememberCoroutineScope
Halil Ozercan
08/13/2020, 8:36 PMrememberCoroutineScope
rememberCoroutineScope { <http://Dispatchers.IO|Dispatchers.IO> }
This compilation error occurs.Zach Klippenstein (he/him) [MOD]
08/20/2020, 7:19 AMrememberCoroutineScope()
works fine, rememberCoroutineScope { Dispatchers.Main.immediate }
crashes. Will try to get a reproducer in a bit.Zach Klippenstein (he/him) [MOD]
08/20/2020, 7:35 AMrememberCoroutineScope
and passing a lambda.Zach Klippenstein (he/him) [MOD]
08/20/2020, 7:37 AMremember
to add on whatever you need to the context.Halil Ozercan
08/20/2020, 7:37 AM