https://kotlinlang.org logo
#compose
Title
# compose
a

Andrei Kovalev

06/21/2022, 1:04 PM
Hi folks, LazyVerticalGrid in
1.2.0-beta02
crashes (only on OPPO and Realme devices) when calculating child constraints.
crossAxisSize
has a negative value. Does anyone experience the same crash?
a

agrosner

06/21/2022, 5:16 PM
have you tried rc01 yet?
a

Andrei Kovalev

06/21/2022, 5:17 PM
not yet, it requires compileSDK 32, we’re on the way there
a

agrosner

06/21/2022, 5:18 PM
oh right
compileSDK 32 and/or new AGP introudced new lint checks, which were painful to address. took a couple of days (Wayfair has a huge app). but 1.2.0-rc01 is probably what the compose team will ask you to try
a

Andrei Kovalev

06/21/2022, 5:24 PM
they probably will. But I’ve gone through changes. It doesn’t look like they changed the way calculate children constraints. Looks like somehow on some devices span value is 0 which gives me a negative value for the
crossAxisSize
3 Views