Fixing error Could not find Ninja on PATH or in SDK CMake bin folders in React Native with Expo

Tiempo de lectura: < 1 minuto

Today we are going to solve the following error:

A problem occurred evaluating project ‘expo’.

A problem occurred configuring project ‘expo-modules-core’.
[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.

This error occurs when we try to generate the development build with Expo:

npx run:android

To solve this error, we need to go to the SDK manager of Android Studio and install the compatible version of cmake with the NDK. In my case, I have:

  • NDK: 23.1.7779620
  • CMake: 3.22.1

To display the above packages we have to check Show Package Details

Leave a Comment