skip to Main Content

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:

  • The android studio current version is 4.2.2
  • This happen when I want to try google/filament samples in android

5

Answers


  1. 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

    Login or Signup to reply.
  2. Add cmake.dir=/usr/local into your local.properties. AndroidStudio add /binto execute cmake.

    Login or Signup to reply.
    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

    Login or Signup to reply.
  3. If u need a specific version (for me I needed 3.18.1) you can download from here

    Login or Signup to reply.
  4. Leaving this here for future reference. thanks.

    sudo JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 ./sdkmanager "cmake;3.xx.x" 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search