react-native-reanimated:compileDebugJavaWithJavac

Created on 12 Aug 2020  路  3Comments  路  Source: software-mansion/react-native-reanimated

Description


Started to see build error on Android as per the below snippet

```> Task :react-native-reanimated:compileDebugJavaWithJavac FAILED
/Users/.../node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java:171: error: cannot find symbol
new GuardedRunnable(mContext.getExceptionHandler()) {
^
symbol: method getExceptionHandler()
location: variable mContext of type ReactContext
Note: /Users/.../node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.
`` I tried tonpx jetify, clean and rebuild the android project in Android Studio, remove the node_modules and re-runnpm install` but none worked for me

Screenshots

Steps To Reproduce

1.

Expected behavior

Actual behavior

Snack or minimal code example

Package versions

  • React: "16.8.3"
  • React Native: "0.59.9"
  • React Native Reanimated: "^1.12.0"
馃悶 Bug

All 3 comments

Thanks for reporting.

This is related to #1031 which changes used a c-tor overload of GuardedRunnable which was deprecated in RN 0.61.

Can you try removing .getExceptionHandler() part of node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java#167 line and check if your project builds correctly?

Reproduced on 0.59.

Fixed by #1110.

Thanks, v1.13.0 did the trick

Was this page helpful?
0 / 5 - 0 ratings