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

Not able to run android app with react-native-customui #405

Open
vinaysgl opened this issue Apr 24, 2022 · 2 comments
Open

Not able to run android app with react-native-customui #405

vinaysgl opened this issue Apr 24, 2022 · 2 comments

Comments

@vinaysgl
Copy link

error: local variable currentActivity is accessed from within inner class; needs to be declared final

Description

Please provide a clear and concise description of what the bug is. Include screenshots if needed.
Please test using the latest React Native Razorpay plugin release to make sure your issue has not already been fixed.

Razorpay Package Version :

Open Package.json. > 2.2.1

Java and Gradle Version (android) :

Specify your Java and Gradle version.

What you did:

What happened:

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

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

@kartikMygoldkart
Copy link

kartikMygoldkart commented May 5, 2022

open android studio
and build the project it will show you error in custom ui sdk just go with make variable final it worked for me
in RazorpayModule.java
change line 85-86 to this
@ReactMethod
public void initRazorpay(final String key){
final Activity currentActivity = getCurrentActivity();

@kkyusufk
Copy link

@vinaysgl Is this issue resolved? We can close it out then.

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

3 participants