kizitonwose / Calendar

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

SnapPositionInLayout nt found #590

Open TooLazyy opened 1 week ago

TooLazyy commented 1 week 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 1 week 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