react-native

> Task :react-native-reanimated:compileDebugJavaWithJavac FAILED


Getting follwoing error

C:\Users\projectname\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()

below are the versions

"react-native-reanimated": "^1.4.0",
"react": "16.8.6",
"react-native": "0.60.3",

I am new to React native everything was working properly but suddenly got this error which i am struggeling to fix, Please suggest if there is any solution for this or root cause.

Please let me know if more information needed.


Solution

  • I also got this same error today and the fix which i did was

    replace

    new GuardedRunnable(mContext.getExceptionHandler())
    

    with

    new GuardedRunnable(mContext)
    

    try and see if this works for you.