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

Task: react-native-orientation-locker: compileDebugJavaWithJavac FAILED #285

Open
sureshkrishnamoorthi opened this issue Dec 27, 2023 · 7 comments

Comments

@sureshkrishnamoorthi
Copy link

sureshkrishnamoorthi commented Dec 27, 2023

I am trying to add orientation to my app. After installing the react-native-orientation , trying to build the app but i am getting the following error Task: react-native-orientation-locker: compileDebugJavaWithJavac FAILED

node_modules\react-native-orientation-locker\android\src\main\java\org\wonday\orientation\OrientationModule.java:416: error: cannot find symbol
receiver, filter, exported ? Context.RECEIVER_EXPORTED : Context.RECEIVER_NOT_EXPORTED);
^
symbol: variable RECEIVER_EXPORTED
location: class Context

"react": "18.1.0",
"react-native": "0.70.5",
"react-native-orientation-locker": "^1.6.0",

 Its working in RN - 0.73.  **But I need solution for "0.70.5"** 
@prakash-bhakat
Copy link

hi @sureshkrishnamoorthi did you get any solution for this?

@sureshkrishnamoorthi
Copy link
Author

@prakash-bhakat Nooooooooooooo

@Brageanth
Copy link

Same here with react-native 0.72.6

@shubhamnishad
Copy link

Did someone found solution for the mentioned issue?

@tructtyoong
Copy link

Same here with react-native 0.63.5

@yevhenpashutin
Copy link

downgrading "react-native-orientation-locker": to version "1.5.0" solved the issue for me

@rjtbst
Copy link

rjtbst commented Apr 24, 2024

downgrade "react-native-orientation-locker": to version "1.3.0" solved the issue for me..

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

7 participants