Fixed
Status Update
Comments
as...@google.com <as...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
lo...@gmail.com <lo...@gmail.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
Description
Jetpack Compose version:
Jetpack Compose component used: compiler and runtime
Android Studio Build:
Kotlin version: 1.9.21
I encountered this crash upgrading Kotlin from 1.9.20 to 1.9.21. When I switched our project to Kotlin 1.9.21, one of our compositions started to crash.
I isolated the crash to this minimal sample:
This sample uses Molecule to start the composition in a test case. I don’t believe Molecule is necessary to reproduce this.
Stack trace (if applicable):
I believe the
return@run
lines are particularly problematic here. Replacing those lines withUnit
prevents the crash.I believe this is related to another bug from August 2021. https://issuetracker.google.com/issues/195242921