当我使用androidstudio创建新的NDK项目时出现Cmake错误

时间:2018-09-18 02:15:53

标签: android android-ndk

AndroidStudio 3.1.4

NDK 17.2.4988734,r16b

cmake 3.6.4111459

我尝试创建一个包含C ++支持的新项目。但是该项目始终会构建失败。

Build command failed.


Error while executing process D:\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HE:\workspace\android-ndk-master\Makeup\app -BE:\workspace\android-ndk-master\Makeup\app\.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-24 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\workspace\android-ndk-master\Makeup\app\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=D:\Android\Sdk\androidndkr16b -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\androidndkr16b\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}


-- Configuring incomplete, errors occurred!


 Parse error.  Expected a command name, got unquoted argument with text "b". 
Open File


Build command failed.


Error while executing process D:\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HE:\workspace\android-ndk-master\Makeup\app -BE:\workspace\android-ndk-master\Makeup\app\.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-24 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\workspace\android-ndk-master\Makeup\app\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=D:\Android\Sdk\androidndkr16b -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\androidndkr16b\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}


-- Configuring incomplete, errors occurred!


 Parse error.  Expected a command name, got unquoted argument with text "b". 
Open File

1 个答案:

答案 0 :(得分:0)

问题已解决,由全局加密软件引起。