react-native-orientation-locker icon indicating copy to clipboard operation
react-native-orientation-locker copied to clipboard

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

Open sureshkrishnamoorthi opened this issue 2 years ago • 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"** 

sureshkrishnamoorthi avatar Dec 27 '23 10:12 sureshkrishnamoorthi

hi @sureshkrishnamoorthi did you get any solution for this?

prakash-bhakat avatar Jan 02 '24 07:01 prakash-bhakat

@prakash-bhakat Nooooooooooooo

sureshkrishnamoorthi avatar Jan 02 '24 10:01 sureshkrishnamoorthi

Same here with react-native 0.72.6

Brageanth avatar Jan 05 '24 16:01 Brageanth

Did someone found solution for the mentioned issue?

shubhamnishad avatar Jan 10 '24 07:01 shubhamnishad

Same here with react-native 0.63.5

tructtyoong avatar Jan 13 '24 03:01 tructtyoong

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

yevhenpashutin avatar Jan 17 '24 19:01 yevhenpashutin

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

rjtbst avatar Apr 24 '24 12:04 rjtbst