Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ch...@google.com <ch...@google.com> #2
And create a non-compose app will just works fine.
an...@google.com <an...@google.com> #3
Same issue here
an...@google.com <an...@google.com> #4
Same issue here, app crashes on start when using android-gradle 7.1.0-alpha04 and AS Canary 4
an...@google.com <an...@google.com> #5
aurimas@, are you the right person for triaging Android Studio version-specific issues? I saw you upgraded AndroidX to Bumblebee Canary 3 last week. This bug report might be specific to Bumblebee Canary 4, I'm not certain.
ap...@google.com <ap...@google.com> #6
Tested this quickly locally, it seems that the studio template creates a project that crashes out of the box. Updating compose_version to 1.0.0-rc02
and kotlin-gradle-plugin to 1.5.10
fixed the crash for me locally. We likely want to update studio template to use the latest of compose and kotlin.
Description
I'm experiencing a runtime crash as compose believes I'm using a duplicate key.
I'm iterating over a collection of
@Immutable
data classes and emitting@Composables
into aVerticalScroller
. Each of my items emits aHorizontalScroller
and it seems that this fails when creating aScrollerPosition
:I'm working around this issue with a
key(…)
.