CMake Error:Error occurred while communicating with CMake server

61
January 11, 2019, at 6:20 PM

When I new a CMake project by the Android Studio,it occures a problem when I open it by the first time:

Error:Error occurred while communicating with CMake server. Check log F:\JNI\app.externalNativeBuild\cmake\debug\armeabi\cmake_server_log.txt for additional information.

below is the cmake_server_log.txt

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

below is the .cpp file

#include <jni.h>
#include <string>
extern "C"
JNIEXPORT jstring
JNICALL
Java_example_com_jni2_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}

It's the origin project created by the Android Studio,I didn't change anything;and I have installed the CMake and NDK. Why this error occured?

READ ALSO
How to prevent double items but also prevent entire list from refreshing?

How to prevent double items but also prevent entire list from refreshing?

I am getting a JSON Array of user ids strings from a database:

26
My app cannot see a library within a library

My app cannot see a library within a library

I created 2 Android librariesNames are LibA and LibB

59
How to make that the snackbar action button be shown in a different line if the text is long?

How to make that the snackbar action button be shown in a different line if the text is long?

I am working with the Material Design components in the support library version 280

55