Build command failed.
Error while executing process F:\android_sdk\cmake\3.10.2\bin\cmake.exe with arguments {--build E:\demo_project\DiDiCallCar-master\app.externalNativeBuild\cmake\debug\arm64-v8a --target native-lib}
[1/2] Building CXX object CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o
FAILED: CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o
F:\android_sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Dnative_lib_EXPORTS -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\native-lib.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o -c ../../../../src/main/jni/native-lib.cpp
../../../../src/main/jni/native-lib.cpp:11:45: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(str, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:25:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:37:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:47:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:59:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
5 errors generated.
ninja: build stopped: subcommand failed.
Build command failed.
Error while executing process F:\android_sdk\cmake\3.10.2\bin\cmake.exe with arguments {--build E:\demo_project\DiDiCallCar-master\app.externalNativeBuild\cmake\debug\arm64-v8a --target native-lib}
[1/2] Building CXX object CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o
FAILED: CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o
F:\android_sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --gcc-toolchain=F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Dnative_lib_EXPORTS -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o -MF CMakeFiles\native-lib.dir\src\main\jni\native-lib.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/jni/native-lib.cpp.o -c ../../../../src/main/jni/native-lib.cpp
../../../../src/main/jni/native-lib.cpp:11:45: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(str, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:25:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:37:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:47:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
../../../../src/main/jni/native-lib.cpp:59:49: error: cannot initialize a parameter of type 'jboolean ' (aka 'unsigned char ') with an rvalue of type 'bool'
originStr = env->GetStringUTFChars(origin_, false);
^~~~~
F:/android_sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include\jni.h:846:61: note: passing argument to parameter 'isCopy' here
const char GetStringUTFChars(jstring string, jboolean isCopy)
^
5 errors generated.
ninja: build stopped: subcommand failed.