0

I'm trying to build my React Native project with the following versions:

React Native: 0.75.5

React Native Reanimated: 3.16.7

When I run the project, I get the following Gradle error:

Task :react-native-reanimated:assertMinimalReactNativeVersionTask FAILED

It seems related to version compatibility, but I'm not sure what the minimal required React Native version for Reanimated 3.16.7 is, or how to fix this.

Steps I've tried:

Clearing Gradle caches

Running ./gradlew clean

Checking react-native-reanimated docs for minimal version

I tried building my React Native 0.75.5 project with react-native-reanimated 3.16.7. I expected the build to succeed without errors. Instead, the Gradle task :react-native-reanimated:assertMinimalReactNativeVersionTask failed, indicating a possible version incompatibility. I also tried clearing caches and running ./gradlew clean, but the error persisted.

0

1 Answer 1

0

Steps to resolve this issue:
1)- Delete node_modules , package-lock.json and yarn.lock
2)- Check for node_modules> react -native-reanimated>package.json if it does not contains the same reanimated version that is mentioned in your root directory package.json then remove ~ before reanimated version in package.json .
3) Now reinstall node_modules
It worked for me and hopefully will work for you as well .

Sign up to request clarification or add additional context in comments.

1 Comment

im using 0.75.5 but in this still have issues 16kb play store issue , so now i setup "react-native": "0.79.6", "react-native-reanimated": "^3.17.0" Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED, i just want to upgrade by project as it is require for 16 kb play store issue , so i just want to setup the latest project but everyone know in react native, react-native-reanimated is important to install and react native screens and react native react-native-gesture-handler and react-native-safe-area-contex these are impotent to install in every project also they give errors

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.