我运行了NDK跟踪,此后我收到此错误,我不知道如何解决
Build command failed.
Error while executing process C:\Users\Albert\Desktop\android-ndk-r17c-windows-x86_64\android-ndk-r17c\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Albert\Desktop\PencilAndPaperGames\PPGC\proj.android\app\jni\Android.mk NDK_APPLICATION_MK=C:\Users\Albert\Desktop\PencilAndPaperGames\PPGC\proj.android\app\jni\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-23 NDK_OUT=C:/Users/Albert/Desktop/PencilAndPaperGames/PPGC/proj.android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:\Users\Albert\Desktop\PencilAndPaperGames\PPGC\proj.android\app\build\intermediates\ndkBuild\debug\lib NDK_TOOLCHAIN_VERSION=clang -j4 NDK_DEBUG=1 C:/Users/Albert/Desktop/PencilAndPaperGames/PPGC/proj.android/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/libMyGame.so}
Android NDK: ERROR:C:/Users/Albert/Desktop/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../sources/android/support/Android.mk:android_support: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:/Users/Albert/Desktop/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../sources/android/support/../../cxx-stl/llvm-libc++/libs/arm64-v8a/libandroid_support.a exists or that its path is correct
答案 0 :(得分:0)
对于arm64,应该定义发出该错误的构建脚本。
>可能正在运行的变量未正确设置,或者您的安装已损坏,这可能是因为构建脚本中的某些内容弄乱了ndk-build内部结构。最好首先尝试的是更新到较新的NDK。如果遇到错误,请始终尝试使用较新的版本。
如果这不起作用,请尝试将以下内容添加到您的Android.mk并共享输出:
$(error NDK_KNOWN_DEVICE_ABI64S=$(NDK_KNOWN_DEVICE_ABI64S))
答案 1 :(得分:0)
最后我得到了cmake,它比ndk痛苦得多!