Skip to content

Crash on Android: outdated paystack-ui:0.0.8 pin causes NoSuchMethodError on AnimatedContent — please bump to 0.0.9/0.0.10 #21

Description

@Dieu-donne

Describe the bug
paystack_flutter_sdk crashes on Android when the payment sheet opens: NoSuchMethodError on AnimatedContent inside PaymentContainerUiKt. Root cause: the plugin's android/build.gradle pins com.paystack.android:paystack-ui:0.0.8, which is outdated. Maven Central already has 0.0.9 and 0.0.10: https://central.sonatype.com/artifact/com.paystack.android/paystack-ui/versions

Please bump the pinned paystack-ui version in this plugin — it's due for an upgrade regardless, and it may already fix this crash.

To Reproduce

  1. Use paystack_flutter_sdk: ^0.0.1-alpha.2 on Android
  2. Launch the payment sheet
  3. App crashes immediately

Expected behavior
Payment sheet opens without crashing.

Stack trace

E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoSuchMethodError: No static method AnimatedContent(...)V in class Landroidx/compose/animation/AnimatedContentKt;
    at com.paystack.android.ui.PaymentContainerUiKt.PaymentContainerUi(PaymentContainerUi.kt:89)
    at com.paystack.android.ui.paymentsheet.PaymentSheetActivity$PaymentSheetUI$2.invoke(PaymentSheetActivity.kt:84)
    ...

Device
Android 14, target SDK 37, reproduced on emulator and physical devices.

Additional context
Confirmed this isn't a dependency conflict on our end — our app manually bumps to com.paystack.android:paystack-ui:0.0.11 and works fine. The crash is coming from paystack-ui:0.0.8 itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions