I've completely followed the "Getting Started" section but i'm facing this bug below when i try to run react-native run-android. Does anyone have any idea on what I might be doing wrong?
> Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED
/home/matheus/Documentos/Trampos/offdriverclientes/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.java:54: error: cannot find symbol
String overflow = ((ReactViewGroup) view).getOverflow();
^
symbol: method getOverflow()
location: class ReactViewGroup
Note: /home/matheus/Documentos/Trampos/offdriverclientes/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
19 actionable tasks: 1 executed, 18 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
I had run into this problem as well.
Solved via that answer here: https://github.com/kmagiera/react-native-gesture-handler/issues/510
just run
npm install [email protected]
and secend step
npx jetify
then react-native run-android
Most helpful comment
I had run into this problem as well.
Solved via that answer here: https://github.com/kmagiera/react-native-gesture-handler/issues/510