react-nativereact-navigation

React Native Reanimated error: Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'


Hi I recently created a react native app version 0.60.5 and installed react-navigation with react-native-reanimated. When I built the project in Android Studio, I'm getting this error in react-native-reanimated: Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'. Is there anything I did wrong?

Here's a screenshot: a


Solution

  • This worked for me:

    npm install -g jetifier
    npx jetify
    

    At root project. Thanks to Harsh2402 for his answer on this issue : https://github.com/kmagiera/react-native-gesture-handler/issues/642