kizitonwose / Calendar

A highly customizable calendar view and compose library for Android.
MIT License
4.5k stars 492 forks source link

App crashing while using HorizontalCalendar #524

Closed simar-mmf closed 4 months ago

simar-mmf commented 5 months ago

Library information:

Currently using compose bom 2023.03.00, which uses compose:ui version 1.4.0.

java.lang.NoSuchMethodError: No static method SnapLayoutInfoProvider(Landroidx/compose/foundation/lazy/LazyListState;Lkotlin/jvm/functions/Function3;)Landroidx/compose/foundation/gestures/snapping/SnapLayoutInfoProvider; in class Landroidx/compose/foundation/gestures/snapping/LazyListSnapLayoutInfoProviderKt; or its super classes (declaration of 'androidx.compose.foundation.gestures.snapping.LazyListSnapLayoutInfoProviderKt' appears in

I tried using other combinations of the compose ui and this library. The crash is not found in some of the cases, but the horizontal calendar does not respond to touch gestures in that case.

kizitonwose commented 5 months ago

My guess is that a transitive dependency is updating your compose to version 1.5.x, you will probably notice that the issue is fixed with calendar library version 2.4.x

myounis97 commented 5 months ago

@kizitonwose hello, it is happening on the latest compose BOM version 2024.01.00 (v1.6.0)

kizitonwose commented 4 months ago

Please use version 2.5.0

navneetpal01 commented 3 months ago

Thanks it worked