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

Fatal Exception: java.lang.NoSuchMethodError No static method performImeAction$default [CRASH] #8599

Closed
afsalkodasseri opened this issue Jun 10, 2024 · 9 comments
Labels

Comments

@afsalkodasseri
Copy link

Summary

App is crashing due to the paymentSheet Dialog crash.
Using the latest version of stripe library (com.stripe:stripe-android:20.44.2)

Crash is happening only for the users who turned on the Accessibility Menu in their phone.
We can bypass this crash when disable the Accessibility Menu.

Crash Log

Fatal Exception: java.lang.NoSuchMethodError
No static method performImeAction$default(Landroidx/compose/ui/semantics/SemanticsPropertyReceiver;Ljava/lang/String;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V in class Landroidx/compose/ui/semantics/SemanticsPropertiesKt; or its super classes (declaration of 'androidx.compose.ui.semantics.SemanticsPropertiesKt' appears in /data/app/~~LTnzjRb8zEMz4rcWeoaVBA==/com.conzumex.musewatch-X1L2hSXv2URfjAC_KA4StQ==/base.apk)
keyboard_arrow_up
arrow_right
androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$semanticsModifier$1.invoke (CoreTextField.kt:532)

Android version

All version getting the same

Impacted devices

All devices with Accessibility Menu turned on

Dependency Versions

com.stripe:stripe-android:20.44.2

@afsalkodasseri
Copy link
Author

WhatsApp Image 2024-06-06 at 7 06 12 PM (1)

hint : Accessibility Menu is replacing the IME button in the navigation bar

@samer-stripe
Copy link
Collaborator

Hey @afsalkodasseri! Are you using Jetpack Compose in your project? If so, what version?

@afsalkodasseri
Copy link
Author

no i am not using jetpack compose. my whole project is in java and i am using some 3 kotlin files. but no compose elements

@samer-stripe
Copy link
Collaborator

Are you using Lifecycle 2.8? Can you try upgrading to 2.8.2 and see if that fixes the issue. Lifecycle 2.8 forcibly upgrades our Compose usage to 1.7 which isn't stable yet.

@muazdev26
Copy link

muazdev26 commented Jun 13, 2024

I have decreased the lifecycle version to 2.7.0 and the crash is not happening on my side.

@afsalkodasseri
Copy link
Author

@samer-stripe i have used these..these are the latest versions till june 12th.

`implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.1'

implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.1'`

I will try after update it to 2.8.2.

Which one you prefer ?
2.8.2 or any older stable version ?

@samer-stripe
Copy link
Collaborator

@afsalkodasseri Either 2.8.2 or 2.7.0 should be fine.

@afsalkodasseri
Copy link
Author

afsalkodasseri commented Jun 20, 2024

2.8.2 giving the same crash. but it works when i downgraded to 2.7.0.
If you are not able to fix the crash from your library, please mention this case as a warning in your documentations.
Everyone will use the latest libraries in their app. Recently i have upgraded to latest one.
And also new developers will face this issue defenitely.

NB: it is not happening for all users, only for the users have already enabled the Accessibility Menu in their phone. But unfortunately most of the samsung and Google pixel devices turned on this by default i guess. our customers from these devices facing this issue mostly. I am not sure they turned on this settings by default.

It will good if you look into this issue.

Thanks for your replies 😊

@afsalkodasseri
Copy link
Author

Fixed when downgraded the lifecycle version to 2.7.1

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

No branches or pull requests

3 participants