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

Crash when using compose v 1.8.0-alpha06 on android #44

Open
TepesLucian opened this issue Nov 26, 2024 · 1 comment
Open

Crash when using compose v 1.8.0-alpha06 on android #44

TepesLucian opened this issue Nov 26, 2024 · 1 comment

Comments

@TepesLucian
Copy link

Code

ModalBottomSheet(
        state = rememberModalBottomSheetState(initialDetent = SheetDetent.FullyExpanded),
    ) {
        Sheet(
            modifier = Modifier
                .background(Color.Red)
                .fillMaxSize(),
        ) {

        }
    }

Crash:

java.lang.NoSuchMethodError: No direct method <init>(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Landroidx/compose/animation/core/AnimationSpec;Landroidx/compose/animation/core/DecayAnimationSpec;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V in class Landroidx/compose/foundation/gestures/AnchoredDraggableState; or its super classes (declaration of 'androidx.compose.foundation.gestures.AnchoredDraggableState' appears in /data/app/~~oNy348mAOgdSFPflHFliag==/com.x.y.z-LrJmhEfwZDuVcA0oX9CIrw==/base.apk)
    	at com.composables.core.BottomSheetState.<init>(BottomSheet.kt:160)
    	at com.composables.core.BottomSheetKt.rememberBottomSheetState$lambda$17(BottomSheet.kt:85)
    	at com.composables.core.BottomSheetKt.$r8$lambda$HOlp03M64Z9EpLpUe6obdQw4518(Unknown Source:0)
    	at com.composables.core.BottomSheetKt$$ExternalSyntheticLambda12.invoke(D8$$SyntheticClass:0)

I've switched to stable version of compose and eveything works as it should.

@alexstyl
Copy link
Member

Needs more info. Which platform and compose version is the crash from?

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

2 participants