Gradle Tips and Tricks for Android: Error whit Cmake config

Hello, I’m working in Gradle Tips and Tricks for Android article, but when I was opening the project in Android Studio I had and error: 22%20AM
Someone else has the same error?

I have Android Studio 3.3.1

Thanks so mach

@nisrulz Can you please help with this when you get a chance? Thank you - much appreciated! :]

Hi @jvelez22

If I am correct, then the error you are probably able to see is this (You can scroll your build logs more to find this):

CMake was unable to find a build program corresponding to “Ninja”. CMAKE_MAKE_PROGRAM is not set.

This means you do not have the ninja build system setup in your path.

If you are not sure how to set it up then execute the below command based on your OS to get it set up:

Linux

  • Arch: pacman -S ninja
  • Debian/Ubuntu: apt-get install ninja-build
  • Fedora: dnf install ninja-build
  • Gentoo: emerge dev-util/ninja
  • Opensuse: zypper in ninja
  • Alpine: apk add ninja

Mac

  • HomeBrew: brew install ninja
  • MacPorts: port install ninja

FreeBSD

  • pkg install ninja

Windows

  • Chocolatey: choco install ninja

Let me know if it helps :slight_smile:

This topic was automatically closed after 166 days. New replies are no longer allowed.