I'm using Android Studio + CMake to build a native library. AS requested installing CMake, even though I already have CMake installed and in my path. Can you tell AS to look for CMake at a certain location, instead of installing another CMake?
The Android NDK supports using CMake to compile C and C++ code for your application.
The default should be the most common and recommended choice. That ought to be the second one: "Add CMake to the system PATH for all users". In specialized cases where the administrator prefers one of the other options, they may certainly pick those.
Go to %userprofile%\AppData\Local\Android\sdk\ndk-bundle and copy . installer folder to desktop and cancel the downloading in SDK manager . Open . installer folder and open .
The new Android plugin for gradle 3.0 will support using system CMake, for CMake 3.7+.
From that webpage:
Download and install CMake 3.7 or higher from the official CMake website.
Include the path to the CMake installation in your project's local.properties file:
cmake.dir="path-to-cmake"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With