Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: error occured while communicating with cmake server

During the Gradle project sync in Android Studio I get the following error:

Error:Error occurred while communicating with CMake server. Check log C:\Users\K\AndroidStudioProjects\hi2\app\.externalNativeBuild\cmake\debug\armeabi\cmake_server_log.txt for additional information.

The cmake log says:

CMAKE SERVER: [== "CMake Server" ==[

CMAKE SERVER: {"cookie":"","inReplyTo":"configure","message":"CMake Error: CMake was unable to find a build program corresponding to \"Ninja\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.","title":"Error","type":"message"}

CMAKE SERVER: ]== "CMake Server" ==]

CMAKE SERVER: CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMAKE SERVER: CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMAKE SERVER: 

CMAKE SERVER: [== "CMake Server" ==[

CMAKE SERVER: {"cookie":"","inReplyTo":"configure","message":"CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage","title":"Error","type":"message"}

CMAKE SERVER: ]== "CMake Server" ==]

CMAKE SERVER: CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMAKE SERVER: CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

I have absolutely no idea what the issue is. It shouldn't be the cmake version I think at least. Any ideas?

like image 624
Ken Kaiser Avatar asked Feb 15 '26 00:02

Ken Kaiser


1 Answers

CMake is indicating that Ninja.exe is not on the PATH.

Edit: The format of the error you posted makes me think you're using a pre-release version of Android Studio 3.0. If so, I highly recommend using the release version.

like image 159
Jomo Fisher Avatar answered Feb 17 '26 17:02

Jomo Fisher