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?