gpt4 book ai didi

android - 发生 CMake 与服务器通信错误

转载 作者:太空宇宙 更新时间:2023-11-03 10:57:40 25 4
gpt4 key购买 nike

我正在构建一个需要一些 NDK 代码的项目,但最近几天这个问题让我抓狂。

这只是一个使用 NDK 的空项目,它是按照 AS 指南创建的,没有任何改变。


环境:

  • Android Studio 3.2.1
  • 构建 #AI-181.5540.7.32.5056338,构建于 2018 年 10 月 9 日
  • JRE:1.8.0_152-release-1136-b06 amd64
  • JVM:JetBrains s.r.o 的 OpenJDK 64 位服务器 VM
  • Windows 10 10.0
  • CMake 版本 3.10.2.4988404(由 SDK 管理器下载)

提示如下:

Support for CMake 3.7 and higher is a preview feature. To report a bug, see https://developer.android.com/studio/report-bugs.html
The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead.
Support for CMake 3.7 and higher is a preview feature. To report a bug, see https://developer.android.com/studio/report-bugs.html


[== "CMake Server" ==[

{"supportedProtocolVersions":[{"isExperimental":true,"major":1,"minor":1}],"type":"hello"}

]== "CMake Server" ==]


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Error occurred while communicating with CMake server. Check log C:\Users\xxx\Desktop\MyApplication\app\.externalNativeBuild\cmake\debug\armeabi-v7a\cmake_server_log.txt for additional information.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 7s
Error occurred while communicating with CMake server. Check log C:\Users\xxx\Desktop\MyApplication\app\.externalNativeBuild\cmake\debug\armeabi-v7a\cmake_server_log.txt for additional information.

我已经检查了这个站点和许多其他站点中的所有帖子。试图重新安装 AS/SDK/NDK/gradle/tools...这些答案都不起作用。

最佳答案

我做了与 Oliver.Wong 类似的事情,它对我有用。我直接从 AndroidStudio 卸载了 Cmake(我的版本是 3.10.xx)。然后我从命令行安装了 Cmake 3.6xx ("yourSdkPath"/android-sdk/tools/bin/sdkmanager/"cmake;3.6.4111459")

关于android - 发生 CMake 与服务器通信错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54110860/

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