Android studio Android Studio:与cmake服务器通信时出错
在Android Studio中的Gradle项目同步期间,我遇到以下错误:Android studio Android Studio:与cmake服务器通信时出错,android-studio,cmake,Android Studio,Cmake,在Android Studio中的Gradle项目同步期间,我遇到以下错误: 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. cmake日志显示
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.
cmake日志显示:
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
我完全不知道问题是什么。至少我认为它不应该是cmake版本。有什么想法吗?CMake表示Ninja.exe不在路径上
编辑:你发布的错误格式让我觉得你使用的是Android Studio 3.0的预发布版本。如果是这样,我强烈建议使用发行版。
我完全不知道问题出在哪里。
-您是否尝试过谷歌搜索日志中提到的错误消息。