During the Gradle project sync in Android Studio I get the following error:
在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.
The cmake log says:
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
I have absolutely no idea what the issue is. It shouldn't be the cmake version I think at least. Any ideas?
我完全不知道这个问题是什么。至少我认为不应该是cmake版本。什么好主意吗?
1 个解决方案
#1
1
CMake is indicating that Ninja.exe is not on the PATH.
CMake表示忍者。exe不在路径上。
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.
编辑:你发布的错误的格式让我觉得你使用的是Android Studio 3.0的预发布版。如果是这样,我强烈推荐使用发布版本。
#1
1
CMake is indicating that Ninja.exe is not on the PATH.
CMake表示忍者。exe不在路径上。
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.
编辑:你发布的错误的格式让我觉得你使用的是Android Studio 3.0的预发布版。如果是这样,我强烈推荐使用发布版本。