Error:Error occurred while communicating with CMake server

前端 未结 3 1010
悲&欢浪女
悲&欢浪女 2021-02-05 10:20

I\'m trying to build a simple native app from Android Studio 3.0 on Windows 10. When I will try to build the app, I get the following error:

\"Error:Error

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-05 10:45

    Actually the issue is that Gradle is interpreting the debug output of the cmake-server as an error and fails. It happens with com.android.tools.build:gradle:3.0.0 but it works correctly starting with com.android.tools.build:gradle:3.1.0.

    If for some reason (plugin, etc) you cannot update to 3.1.0, you can replace cmake with a python wrapper and filter the output by removing this exact output:

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

提交回复
热议问题