Ektos974 Ektos974 - 2 months ago 130
Android Question

How can I install Android NDK Cmake tools on headless server

I'm trying to configure an headless build-server to build an Android NDK project that's using Cmake to build the C++ part.

Right now I'm having this issue:

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to find CMake.
Install from Android Studio under File/Settings/Appearance & Behavior/System Settings/Android SDK/SDK Tools/CMake.
Expected CMake executable at /usr/local/android-sdk-linux/cmake/bin/cmake.


I've found a workaround!!

I've install cmake using this script: https://github.com/Commit451/android-cmake-installer

It's done the job until Google publish a fix so we can install it using the Sdk Manager (here link of the issue