skip to Main Content

I am having issue with my react native app android build having this error message pop up


Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-reanimated'.
> com.android.builder.errors.EvalIssueException: CMake '3.18.1' was not found in SDK, PATH, or by cmake.dir property.

* 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

and then the build fails if anyone knows this issue please could help me solve this , im using metro not expo

2

Answers


    • Open SDK Manager
    • Switch to the SDK Tools tab
    • Install CMake (select the version highlighted in your error)

    enter image description here

    Login or Signup to reply.
  1. Try to add this line below presets in babel.config.js file.

    plugins: [
        'react-native-reanimated/plugin',
      ],
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search