• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

CMake Outdated in Android Studio

xarzu

Newbie
When running the Gradle Sync command in Android Studio...
upload_2022-7-13_10-19-12.png

I get an error message that the CMake is outdated.
upload_2022-7-13_10-20-20.png


This happens even if I remove cmake from the command line. So it seems that cmake is embedded into Android Studio. So how do I update cmake if it is part of Android Studio somehow?
 

Attachments

  • upload_2022-7-13_10-20-7.png
    upload_2022-7-13_10-20-7.png
    17.5 KB · Views: 84
  • upload_2022-7-13_10-20-20.png
    upload_2022-7-13_10-20-20.png
    42.2 KB · Views: 79
I have upgraded CMake.

Android Studio has a Terminal Window where I can check the cmake version with:
cmake --version
And both the Ubuntu OS Terminal as well as the Terminal window in Android Studio gives the same result that I am running the right version of CMake now:

as well as the Command Line in Android Studio, I can request what version I now have.
android_terminal.png

But when I do the Gradle Sync, Android Studio STILL says I am using the wrong version.
gradle_sync_error.png

Please Help !!
 
In addition to specify the CMake version in your module's build.gradle file, remember to include the path to the CMake installation in your project's local.properties file.

cmake.dir = "path-to-cmake"
 
Back
Top Bottom