0

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 2

0

Try to add this line below presets in babel.config.js file.

plugins: [
    'react-native-reanimated/plugin',
  ],
-1
  • Open SDK Manager
  • Switch to the SDK Tools tab
  • Install CMake (select the version highlighted in your error)

enter image description here

6
  • @Mennno i tryed stil same issue do I have to restart
    – famo
    Sep 8, 2022 at 7:35
  • 1
    Yes that might help. What OS are you using?
    – MESP
    Sep 8, 2022 at 9:01
  • 1
    @famo which version of cmake did you install? You can click Show Package Details checkbox to see which version is your installation using. You can then select the exact version mentioned above.
    – dev404
    Sep 8, 2022 at 9:17
  • @MennoSpijker please edit the answer with small details you answer is correct , then I can rate i mistakenly rates wrongly
    – famo
    Sep 8, 2022 at 18:09
  • 1
    @dev404 tq correct i was using wrong version
    – famo
    Sep 8, 2022 at 18:10

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.