mohoward
2018-12-14 07:41
采纳率: 100%
浏览 2.6k

android studio3.1.4 建C++新项目时cmake报的问题

Build command failed.

Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\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 "%TSD-Header-".
Open File

Build command failed.

Error while executing process D:\tool\AndroidSdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\gitdemo\JniTest\app -BD:\gitdemo\JniTest\app.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-26 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\gitdemo\JniTest\app\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=D:\tool\ndkbundle\androidndkr15c -DCMAKE_CXX_FLAGS=-frtti -fexceptions -DCMAKE_TOOLCHAIN_FILE=D:\tool\ndkbundle\androidndkr15c\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\tool\AndroidSdk\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 "%TSD-Header-".
Open File

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

4条回答 默认 最新

  • mohoward 2018-12-18 01:37
    已采纳

    图片说明图片说明

    ndk和cmake都换过了也不行,最后在虚拟机的ubuntu系统下的android studio和家里的windows下as是正常使用的,可能这个电脑的系统有关图片说明

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • 查看更多回答(3条)

相关推荐 更多相似问题