CMake가 서버에 통신 오류가 발생했습니다. (CMake communicate to server error occurred)


문제 설명

CMake가 서버에 통신 오류가 발생했습니다. (CMake communicate to server error occurred)

저는 NDK 코드가 필요한 프로젝트를 만들고 있는데, 여기에 문제가 있습니다. 요 며칠간 저를 미치게 만들었습니다.

AS 가이드에 따라 생성하고 변경한 NDK를 사용하여 빈 프로젝트일 뿐입니다. 아무것도 없습니다.


환경:

  • Android Studio 3.2.1
  • 빌드 #AI‑181.5540.7.32.5056338, 10월 9일 빌드 , 2018
  • JRE: 1.8.0_152‑release‑1136‑b06 amd64
  • JVM: JetBrains sro의 OpenJDK 64비트 서버 VM
  • Windows 10 10.0
  • CMake 버전 3.10.2.4988404(SDK Manager에서 다운로드)

다음은 힌트입니다.

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를 다시 설치하려고 했습니다... 해당 답변이 작동하지 않습니다.


참조 솔루션

방법 1:

I did something similar as Oliver.Wong, and it worked for me. I uninstalled Cmake directly from AndroidStudio (my version was 3.10.xx). And then I installed Cmake 3.6xx from the command line ("yourSdkPath"/android‑sdk/tools/bin/sdkmanager/ "cmake;3.6.4111459")

방법 2:

Try below

externalNativeBuild { 
    cmake { 
        ...
        version "3.10.2"
        ...
    } 
} 

Or just remove the newer version of CMake 3.10.2, and fallback to 3.6.

방법 3:

Please see if this one could help. For this case, please try use Studio/gradle plugin version 3.3.1+.

(by Oliver.WongMarc CalandroshizhenGerry)

참조 문서

  1. CMake communicate to server error occurred (CC BY‑SA 2.5/3.0/4.0)

#android-ndk #Android #cmake






관련 질문

FFmpeg 1.0 < 오디오 재생 문제 유발 (FFmpeg 1.0 < causing audio playback issues)

Android ImageView가 업데이트되지 않습니다. (Android ImageView is not being updated)

나중에 Android에서 실행해야 하는 데스크탑용 OpenCV 애플리케이션 개발 및 테스트 (Developing and testing an OpenCV application on desktop which should later run on Android)

Android 스튜디오 NDK 해결 방법 (Android Studio NDK workaround)

64비트 Android 장치에서 .so 파일을 찾을 수 없습니다. (Can not find .so file on 64 bit android device)

RUBYMOTION_ANDROID_SDK가 잘못되었습니다. (RUBYMOTION_ANDROID_SDK is incorrect)

NDK: 자바 클래스에서 .c 상수를 사용하는 방법 (NDK: How to use .c constants in java class)

Android ndk(cmake): '두 번째 jni 라이브러리에서 로그 API를 사용할 때 '__android_log_write'에 대한 정의되지 않은 참조 (Android ndk(cmake): 'undefined reference to `__android_log_write' when using log api in the second jni library)

~SkSpriteBlitter()를 반환할 때 스키어 네이티브 충돌이 발생했습니다. (I got skia native crash when return ~SkSpriteBlitter())

JNI를 사용하는 JAR에 Android 라이브러리 패키징 (Packing an android library on a JAR that uses JNI)

CMake가 서버에 통신 오류가 발생했습니다. (CMake communicate to server error occurred)

armv7-linux-androideabi 대상에서 Rust 라이브러리 충돌 (Rust library crashing on target armv7-linux-androideabi)







코멘트