美文网首页
ndk项目编译异常---The armeabi ABI shou

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

作者: 君莫醉 | 来源:发表于2018-07-09 10:36 被阅读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的版本

    相关文章

      网友评论

          本文标题:ndk项目编译异常---The armeabi ABI shou

          本文链接:https://www.haomeiwen.com/subject/xyszuftx.html