Calendar icon indicating copy to clipboard operation
Calendar copied to clipboard

App crashing while using HorizontalCalendar

Open simar-mmf opened this issue 1 year ago • 2 comments

Library information:

  • Version: 2.3.0
  • View or Compose module: Compose

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.

simar-mmf avatar Jan 17 '24 10:01 simar-mmf

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

kizitonwose avatar Jan 17 '24 12:01 kizitonwose

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

myounis97 avatar Jan 30 '24 15:01 myounis97

Please use version 2.5.0

kizitonwose avatar Feb 13 '24 10:02 kizitonwose

Thanks it worked

navneetpal01 avatar Mar 04 '24 09:03 navneetpal01