razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
125 stars 107 forks source link

BUG: razorpay crash #413

Closed evolvingkid closed 2 years ago

evolvingkid commented 2 years ago

Description

Razorpay randomly crash for a user. We weren't able to reproduce the crash. This was only happen to android device.

The crash log was:

Fatal Exception: java.lang.NoSuchFieldError: No static field activity_result_invalid_parameters of type I in class Lcom/razorpay/R$string; or its superclasses (declaration of 'com.razorpay.R$string' appears in /data/app/com.tortoisehq.tortoise-ZxeRTNLGKeuEgqbhf3KR_A==/base.apk!classes3.dex)
       at com.razorpay.CheckoutPresenterImpl.setOptions(CheckoutPresenterImpl.java:186)
       at com.razorpay.b__J_.onCreate(BaseCheckoutActivity.java:107)
       at com.razorpay.BaseCheckoutOtpelfActivity.onCreate(BaseCheckoutOtpelfActivity.java:26)
       at com.razorpay.CheckoutActivity.onCreate(CheckoutActivity.java:8)
       at android.app.Activity.performCreate(Activity.java:7009)
       at android.app.Activity.performCreate(Activity.java:7000)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
       at android.app.ActivityThread.-wrap11()
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6494)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Razorpay Package Version :

"react-native-razorpay": "^2.2.9",

Java and Gradle Version (android) :

Specify your Java and Gradle version. openjdk 11.0.15 2022-04-19 LTS

Gradle 6.7

What you did:

What happened:

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

1. 2.

Suggested solution:

Code example, screenshot, or link to a repository:

Please provide a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

kkyusufk commented 2 years ago

Hey @evolvingkid, please let us know if this issue is still existing as well a step to reproduce.

evolvingkid commented 2 years ago

We only had this issues one time and we weren’t able to reproduced

kkyusufk commented 2 years ago

@evolvingkid Thanks for the update. We are closing this issue since its not re-produceable but please re-open it if you encounter this issue again.