GottaK
GottaK

Reputation: 33

ERROR: CMake '3.19.0' or higher was not found in SDK, PATH, or by cmake.dir property

I have done some searching and found that I should install CMake in SDK manager but the 3.19+ version does not show here as shown in the picture below.

NoCmake3.19

Is there anything that has to be done in order to have CMake 3.19?

Edit:

Upvotes: 1

Views: 12654

Answers (5)

noypi
noypi

Reputation: 991

Leaving this here for future reference. thanks.

sudo JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 ./sdkmanager "cmake;3.xx.x" 

Upvotes: 0

code-assassin
code-assassin

Reputation: 415

If u need a specific version (for me I needed 3.18.1) you can download from here

Upvotes: 2

VIN
VIN

Reputation: 6957

  1. Follow the instructions here to download and add CMake to your path: https://tudat.tudelft.nl/installation/setupDevMacOs.html

  2. Add cmake.dir=/usr/local into your local.properties

  3. Rebuild your Android app

Upvotes: 2

Danny
Danny

Reputation: 11

Add cmake.dir=/usr/local into your local.properties. AndroidStudio add /binto execute cmake.

Upvotes: 1

Tobias Lukoschek
Tobias Lukoschek

Reputation: 405

you can manually download the newest cmake version (https://cmake.org/download/) and specify in gradle to use it: https://developer.android.com/studio/projects/install-ndk

Upvotes: 2

Related Questions