Adib Faramarzi

08/10/2021, 5:38 AM
I'm getting the weirdest error in compose navigation. If I add more than 12 navigation destinations in
I immediately get
java.lang.ArrayIndexOutOfBoundsException: length=13; index=13
! The best part is it doesn't have anything to do with the composable themselves (removing any destination fixes it)

Tin Tran

08/10/2021, 5:40 AM
I might have this error too because I have the wrong setup with bottom nav causing the backstack to fill. Popping backstack does help. Gonna try to reproduce it later today. Could you post some sample code?

Adib Faramarzi

08/10/2021, 5:41 AM
I have bottom sheet too
It might be the bottom sheet's fault
I'll investigate
Removing bottom sheet did not help.

Rick Regan

08/10/2021, 2:55 PM
This has come up a few times recently, though I'm not sure what the resolution is: