NDK-构建命令失败。执行过程时出错 android
NDK- Build command failed. Error while executing process android
您好,有很多关于此问题的问题,但无法解决我的问题。所以发布了我的错误,如果有人可以指导我解决具体错误。谢谢
Build command failed.
Error while executing process C:\Users\Spartan_Base\AppData\Local\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\android\app\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\android\app\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-14 NDK_OUT=D:/android/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=D:\android\app\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
process_begin: CreateProcess(NULL, "", ...) failed.
Android NDK: D:\android\app\src\main\jni\Android.mk: Cannot find module with tag 'box2D' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
Build command failed.
Error while executing process C:\Users\Spartan_Base\AppData\Local\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\android\app\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\android\app\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=D:/android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\android\app\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: D:\android\app\src\main\jni\Android.mk: Cannot find module with tag 'box2D' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
process_begin: CreateProcess(NULL, "", ...) failed.
你的Android.mk有一行
$(call import-module, box2D)
但是你没有把box2D/Android.mk的路径添加到NDK_MODULE_PATH.
有关说明,请参阅 https://developer.android.com/ndk/guides/android_mk.html。
如果下载https://github.com/mcxiaoke/box2d-ndk到D:\Downloads\box2D,可以添加行
NDK_MODULE_PATH += D:/Downloads/box2D/jni
到D:\android\app\src\main\jni\Application.mk
不知道,这是否是正确的解决方案,但在我从 JNI 文件夹打开 Android.mk 文件并删除文件开头的一些空行后,我的问题得到解决
您好,有很多关于此问题的问题,但无法解决我的问题。所以发布了我的错误,如果有人可以指导我解决具体错误。谢谢
Build command failed.
Error while executing process C:\Users\Spartan_Base\AppData\Local\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\android\app\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\android\app\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-14 NDK_OUT=D:/android/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=D:\android\app\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
process_begin: CreateProcess(NULL, "", ...) failed.
Android NDK: D:\android\app\src\main\jni\Android.mk: Cannot find module with tag 'box2D' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
Build command failed.
Error while executing process C:\Users\Spartan_Base\AppData\Local\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\android\app\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\android\app\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=D:/android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\android\app\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: D:\android\app\src\main\jni\Android.mk: Cannot find module with tag 'box2D' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
process_begin: CreateProcess(NULL, "", ...) failed.
你的Android.mk有一行
$(call import-module, box2D)
但是你没有把box2D/Android.mk的路径添加到NDK_MODULE_PATH.
有关说明,请参阅 https://developer.android.com/ndk/guides/android_mk.html。
如果下载https://github.com/mcxiaoke/box2d-ndk到D:\Downloads\box2D,可以添加行
NDK_MODULE_PATH += D:/Downloads/box2D/jni
到D:\android\app\src\main\jni\Application.mk
不知道,这是否是正确的解决方案,但在我从 JNI 文件夹打开 Android.mk 文件并删除文件开头的一些空行后,我的问题得到解决