Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal Pager Issue. #4

Open
abdulhamidrpn opened this issue Nov 4, 2024 · 4 comments
Open

Horizontal Pager Issue. #4

abdulhamidrpn opened this issue Nov 4, 2024 · 4 comments
Assignees

Comments

@abdulhamidrpn
Copy link

java.lang.NoSuchMethodError: No static method HorizontalPager-xYaah8o(Landroidx/compose/foundation/pager/PagerState;Landroidx/compose/ui/Modifier;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/pager/PageSize;IFLandroidx/compose/ui/Alignment$Vertical;Landroidx/compose/foundation/gestures/snapping/SnapFlingBehavior;ZZLkotlin/jvm/functions/Function1;Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;III)V in class Landroidx/compose/foundation/pager/PagerKt; or its super classes (declaration of 'androidx.compose.foundation.pager.PagerKt' appears in /data/app/~~YD7kY_gTTBXm3s2O0KA8AQ==/com.education.ekagratagkquiz-zxkvrdiXft4EQJCrmw2fTA==/base.apk)

There may be an issue with the horizontal pager. It's crashing after loading.

@rexmtorres
Copy link

I am experiencing a similar issue for VerticalPager. I think it's because this library is using an old version of Compose.

java.lang.NoSuchMethodError: No static method VerticalPager-xYaah8o(Landroidx/compose/foundation/pager/PagerState;Landroidx/compose/ui/Modifier;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/foundation/pager/PageSize;IFLandroidx/compose/ui/Alignment$Horizontal;Landroidx/compose/foundation/gestures/snapping/SnapFlingBehavior;ZZLkotlin/jvm/functions/Function1;Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;III)V in class Landroidx/compose/foundation/pager/PagerKt; or its super classes (declaration of 'androidx.compose.foundation.pager.PagerKt' appears in /data/app/~~4qFnKiMG2dRutUIOr3G8ZA==/com.habitap.one.aiahk-OB4f6iHA5cjs91MLg95yrA==/base.apk)
                                                  	at com.pratikk.jetpdfvue.VerticalVueReaderKt.VerticalVueReader(VerticalVueReader.kt:55)

@pratikksahu
Copy link
Owner

This is happening due to gradle giving priority to the latest compose which your projects might be having. Will try to fix this over the weekend

@pratikksahu pratikksahu self-assigned this Nov 8, 2024
@pratikksahu
Copy link
Owner

pratikksahu commented Nov 8, 2024

#5 Published new version 1.0.7 with the fix

@rexmtorres
Copy link

Thank you! Was about to do a pull request with my attempt to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants