aakarshrestha / compose-pager-snap-helper

ComposePagerSnapHelper library that works just like PagerSnapHelper for recyclerview.
MIT License
45 stars 5 forks source link

implementation "com.github.aakarshrestha:compose-pager-snap-helper:0.4.1" #6

Open KingFuGitHub opened 2 years ago

KingFuGitHub commented 2 years ago

the implementation "com.github.aakarshrestha:compose-pager-snap-helper:0.4.1" is not recognized. I can't run the app once have that in the build.gradle(module)

aakarshrestha commented 2 years ago

Thanks for reporting this issue. The Solution for now is go to your settings.gradle and replace "dependencyResolutionManagement" block with

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.PREFER_PROJECT) repositories { google() mavenCentral() jcenter() // Warning: this repository is going to shut down soon maven { url 'https://jitpack.io' } } }

Hope it helps!

Thanks!

On Thu, Dec 23, 2021 at 2:51 AM Long Nguyen @.***> wrote:

the implementation "com.github.aakarshrestha:compose-pager-snap-helper:0.4.1" is not recognized. I can't run the app once have that in the build.gradle(module)

— Reply to this email directly, view it on GitHub https://github.com/aakarshrestha/compose-pager-snap-helper/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADS4P3KRSJNROTBDO5CZLYLUSLPIXANCNFSM5KUJL33A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

KingFuGitHub commented 2 years ago

image

The application crashes when I run the app. Sync project works fine but when launching the app it keeps crashing. Maybe it's not optimized for the latest kotlin and composable version?

loicsiret commented 2 years ago

@KingFuGitHub the PR I've proposed, fix this problem 👍🏻