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

CookieManagerModule.java has a local variable accessed from an inner class that's not declared final #148

Open
yasithA opened this issue May 2, 2022 · 1 comment

Comments

@yasithA
Copy link

yasithA commented May 2, 2022

When building for Android, the following build error occurs.

node_modules\@react-native-cookies\cookies\android\src\main\java\com\reactnativecommunity\cookies\CookieManagerModule.java:111: error: local variable promise is accessed from within inner class; needs to be declared final
                    promise.resolve(data);

If I go to the file in node_modules and make the promise variable final, the build succeeds.

@kjurkovicafinitos
Copy link

This is a duplicate of #146

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

2 participants