Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cmake 3.10.2 not found in SDK, PATH or by cmake.dir prop

Getting the following error when building my project in Android Studio:

[CXX1300] CMake '3.10.2' was not found in SDK, PATH, or by cmake.dir property.

My Gradle looks like the following:

externalNativeBuild {
    cmake {
        cppFlags "-std=c++11"

    }
}

ndk {
    abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}

I have installed CMake in the SDK manager.

I have tried to remove cppFlags and replace with version 3.10.2 and path to the Cmake file; this causes the gradle to not sync at all.

I've tried looking at other threads with a similar problem, but doesn't seem to be able to fix my own problem.

Currently running Android studio bumblebee.

Any tip or help would be appreciated.

like image 495
wazev Avatar asked Sep 02 '25 01:09

wazev


1 Answers

While the latest version of cmake is 3.18.1, it looks like Bumblebee is still looking for ver 3.10.2 by some rules it defines, which ended up with a mismatched version error.

Makes sure Cmake 3.10.2 is checked and installed in SDK tools. By the way, check "Show Package Details" in [Android SDK] -> [SDK Tools] -> CMake, to list all available CMake versions.

Good luck!

enter image description here

like image 140
Neil.Ling Avatar answered Sep 05 '25 07:09

Neil.Ling