如何解决NDK的错误-我无法构建我的应用

时间:2019-09-12 03:34:53

标签: android-ndk ndk-build

Build command failed.
Error while executing process C:\Users\Abir CSE\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\TBL Office Project\ASS\library\src\main\cpp\Android.mk NDK_APPLICATION_MK=D:\TBL Office Project\ASS\library\src\main\cpp\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=D:/TBL Office Project/ASS/library/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\TBL Office Project\ASS\library\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}

'C:\Users\Abir' is not recognized as an internal or external command,
operable program or batch file.

1 个答案:

答案 0 :(得分:1)

对于Android NDK,没有路径可以包含空格。这是指:

  • 项目根目录
  • 项目内的目录名称
  • 第三方库和依赖项目的路径
  • Android SDK的路径
  • NDK本身的路径

对于您来说,Android SDK已安装在C:\Users\Abir CSE\AppData\Local\Android中。将其移动到%HOME%之外的目录。