ndk项目编译异常---The armeabi ABI shou

2018-07-09  本文已影响784人  君莫醉
Build command failed.
Error while executing process F:\toollib\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\android_worckspace\DoubleOpenElves\lib\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\android_worckspace\DoubleOpenElves\lib\src\main\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=0 APP_PLATFORM=android-14 NDK_OUT=D:/android_worckspace/DoubleOpenElves/lib/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=D:\android_worckspace\DoubleOpenElves\lib\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one architecture definitions. Found: ''    
process_begin: CreateProcess(NULL, "", ...) failed.
Build command failed.
Error while executing process F:\toollib\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\android_worckspace\DoubleOpenElves\lib\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\android_worckspace\DoubleOpenElves\lib\src\main\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-14 NDK_OUT=D:/android_worckspace/DoubleOpenElves/lib/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\android_worckspace\DoubleOpenElves\lib\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one architecture definitions. Found: ''    
process_begin: CreateProcess(NULL, "", ...) failed.

主要看到第二行

Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one architecture definitions. Found: ''    

提示armeabi有问题,通过查看ndk版本发现


image.png

将ndk升级到了最新版本,通过google查看资料发现


image.png
NDK新版本不支持 armeabi ,
所以解决方法是将
image.png

的 armeabi 去掉即可编译通过,或者将ndk 还原r16的版本

上一篇下一篇

猜你喜欢

热点阅读