Skip to content Skip to sidebar Skip to footer

Which Cmake Will Android Plugin Use?

With Android Studio 3.3 I use native (C++) library, which I built with CMake. The Android plugin (v. 3.2.1) will choose the 'builtin' or 'external' cmake, depending on the configur

Solution 1:

Android Studio will pick up the latest CMake version under sdk\cmake, but you can configure your particular version from

externalNativeBuild {
    cmake {
        ...
        version "cmake-version"
    }
}

And specify our custom CMake director as below inside local.properties

cmake.dir="path-to-cmake"

Or, you can choose NOT to upgrade your CMake from SDK Manager (just to delete the sdk\cmake\<version to delete> folder will be fine) so that you can stick to the CMake version your project is comfortable with.

Post a Comment for "Which Cmake Will Android Plugin Use?"