kizitonwose / Calendar

A highly customizable calendar view and compose library for Android and Kotlin Multiplatform.
MIT License
4.78k stars 508 forks source link

SnapPositionInLayout nt found #590

Closed TooLazyy closed 1 month ago

TooLazyy commented 2 months ago

Library information:

Describe the bug**

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/foundation/gestures/snapping/SnapPositionInLayout; when using horizontal callendar

compose ui version - 1.6.8

I can see this issue and this issue marked as closed, but there's no solution. I dont wanna to update to compose beta.

Btw, if I create SnapLayoutInfoProvider in my code - it works fine and doest crash. Crash only happens inside the library.

kizitonwose commented 2 months ago

The only reason this would be crashing in your code is that another dependency is transitively upgrading your Compose UI version to 1.7. You have to either find this dependency and downgrade it or use a compatible calendar version 2.6.x