gpt4 book ai didi

android-studio - 安卓工作室 : error occured while communicating with cmake server

转载 作者:行者123 更新时间:2023-12-03 17:22:52 33 4
gpt4 key购买 nike

在 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 日志说:

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 不在 PATH 上。

编辑:您发布的错误格式让我认为您使用的是 Android Studio 3.0 的预发布版本。如果是这样,我强烈建议使用发行版。

关于android-studio - 安卓工作室 : error occured while communicating with cmake server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47003686/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com