wonday/react-native-orientation-locker

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

Opened this issue ยท 7 comments

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"** 

hi @sureshkrishnamoorthi did you get any solution for this?

Same here with react-native 0.72.6

Did someone found solution for the mentioned issue?

Same here with react-native 0.63.5

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

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