Android Material Design 3 in Compose: LazyRow App crash
I’m learning about Android Material Design 3. Material 3 is the latest version of Google’s open-source design system. Design and build beautiful, usable products with Material 3. Pretty cool library tools for Android developers, more info here https://m3.material.io/ and https://developer.android.com/jetpack/compose/designsystems/material3.
I added the below dependency to my Android project:
implementation 'androidx.compose.material3:material3:1.2.0-alpha11'
After adding the dependency, I noticed a crash on my app using the LazyRow. I debugged the app for code changes but I didn’t find major code changes. After researching online I found the bug https://issuetracker.google.com/issues/306301019.
Process: com.myimportantdates, PID: 1023
java.lang.IndexOutOfBoundsException: Index 1, size 1
at androidx.compose.foundation.lazy.layout.MutableIntervalList.checkIndexBounds(IntervalList.kt:183)
at androidx.compose.foundation.lazy.layout.MutableIntervalList.get(IntervalList.kt:166)…