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

Closed
TepesLucian opened this issue Nov 26, 2024 · 5 comments
Closed

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

TepesLucian opened this issue Nov 26, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

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?

@TepesLucian
Copy link
Author

Android platform with compose androidx.compose:compose-bom-alpha:2024.11.00 bom version.

@alexstyl alexstyl self-assigned this Dec 1, 2024
@alexstyl alexstyl added the bug Something isn't working label Dec 1, 2024
@alexstyl
Copy link
Member

alexstyl commented Dec 1, 2024

Was able to reproduce. Investigating

@alexstyl
Copy link
Member

alexstyl commented Dec 1, 2024

Fixed. Fix will be available on the next release

@alexstyl
Copy link
Member

alexstyl commented Dec 2, 2024

This is now available in 1.20.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants