Process: com.sarang.torang, PID: 12909
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/~~zR-hpDa5W8vOwqrkkfED3Q==/com.sarang.torang-yY-pjf8TbISVg7GUEupR5w==/base.apk)
at com.sarang.torang.compose.feed.internal.components.ImagePagerWithIndicatorKt.ImagePagerWithIndicator-oKE7A98(ImagePagerWithIndicator.kt:69)
at com.sarang.torang.compose.feed.FeedKt$Feed$1$1.invoke(Feed.kt:155)
at com.sarang.torang.compose.feed.FeedKt$Feed$1$1.invoke(Feed.kt:95)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at com.sarang.torang.compose.feed.FeedKt$Feed_X_j7pcM$lambda$6$$inlined$ConstraintLayout$10.invoke(ConstraintLayout.kt:293)
at com.sarang.torang.compose.feed.FeedKt$Feed_X_j7pcM$lambda$6$$inlined$ConstraintLayout$10.invoke(ConstraintLayout.kt:291)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.ui.layout.LayoutKt.MultiMeasureLayout(Layout.kt:514)
at com.sarang.torang.compose.feed.FeedKt.Feed-X_j7pcM(Feed.kt:671)
at com.sarang.torang.ComposableSingletons$MainActivityKt$lambda-1$1.invoke(MainActivity.kt:91)
at com.sarang.torang.ComposableSingletons$MainActivityKt$lambda-1$1.invoke(MainActivity.kt:90)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:161)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at com.sarang.torang.compose.feed.MainFeedScreenKt$FeedScreenForMain$3.invoke(MainFeedScreen.kt:68)
at com.sarang.torang.compose.feed.MainFeedScreenKt$FeedScreenForMain$3.invoke(MainFeedScreen.kt:67)

 

라이브러리 업데이트 전

 

다른 라이브러리에서 사용하는 Pager이 1.6.8 버전을 사용하여 충돌

 

새로 적용한 navigation 2.8.0-alpha08 라이브러리는 compose foundation 1.7.0-alpha08을 사용한다.

충돌이 나는 라이브러리(기존 Pager을 사용하던 라이브러리들)에 아래 라이브러리를 추가해야했다.

implementation "androidx.compose.foundation:foundation:1.7.0-alpha08​

 

+ Recent posts