外部本机构建问题构建命令失败

时间:2017-07-07 05:08:45

标签: android android-studio android-ndk

我已经开发了现有的NDK项目。我在Android Studio 2.3.3版本中导入它。导入项目后出现以下类型的错误。

External Native Build Issues
Build command failed.
Error while executing 'C:\Users\Admin\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\...\jni\Android.mk NDK_APPLICATION_MK=D:\...\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDEBUG=1 APP_PLATFORM=android-16 NDK_OUT=D:/ProjectNameFolder/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\ProjectNameFolder\new\Project\app\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -n}
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: D:\...\jni\Android.mk    
process_begin: CreateProcess(NULL, "", ...) failed.
Build command failed.
Error while executing 'C:\Users\Admin\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\...\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\ProjectNameFolder\new\Project\app\src\main\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDEBUG=0 APP_PLATFORM=android-16 NDK_OUT=D:/ProjectNameFolder/new/Project/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=D:\ProjectNameFolder\new\Project\app\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -n}
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: D:\...\src\main\jni\Android.mk    
process_begin: CreateProcess(NULL, "", ...) failed.
C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk
Error:(48, 0) D:\DemoProject: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) Source: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) Code: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) And: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) Apk\new\Project\app\src\main\jni\Application.mk: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(100, 0) *** Android NDK: Aborting...    .  Stop.
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) D:\ProjectNameFolder: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) Source: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) Code: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) And: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(48, 0) Apk\new\Project\app\src\main\jni\Application.mk: No such file or directory
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>
Error:(100, 0) *** Android NDK: Aborting...    .  Stop.
<a href="openFile:C:\Users\Admin\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk">Open File</a>

0 个答案:

没有答案