解决最新ndk导致android.mk项目报错Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one archi...

错误提示

Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one architecture definitions. Found: ''    
process_begin: CreateProcess(NULL, "", ...) failed.
*** Android NDK: Aborting...    .  Stop.

Application.mk的armebi修改为armeabv-7a

build.gradle里面的armeabi也是一样因为最新ndK已经移除了支持

       moduleName "xxxx"
            abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a','x86_64'
            //abiFilters 'armeabi'
        }

https://stackoverflow.com/questions/50336033/error-android-studio-3-1-2-ndkbuild

再来看看阿里的例子

Build command failed.


Error while executing 'D:\env\android_sdk\ndk-bundle\ndk-build.cmd' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\demo\dns\alicloud-android-demo\hotfix_android_demo\src\main\jni\Android.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDEBUG=0 APP_PLATFORM=android-14 NDK_OUT=E:\demo\dns\alicloud-android-demo\hotfix_android_demo\.externalNativeBuild\ndkBuild\release\obj NDK_LIBS_OUT=E:\demo\dns\alicloud-android-demo\hotfix_android_demo\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -n}


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


process_begin: CreateProcess(NULL, "", ...) failed.


*** Android NDK: Aborting...    .  Stop.
Open File


Build command failed.


Error while executing 'D:\env\android_sdk\ndk-bundle\ndk-build.cmd' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\demo\dns\alicloud-android-demo\hotfix_android_demo\src\main\jni\Android.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDEBUG=1 APP_PLATFORM=android-14 NDK_OUT=E:\demo\dns\alicloud-android-demo\hotfix_android_demo\.externalNativeBuild\ndkBuild\debug\obj NDK_LIBS_OUT=E:\demo\dns\alicloud-android-demo\hotfix_android_demo\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -n}


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


process_begin: CreateProcess(NULL, "", ...) failed.


*** Android NDK: Aborting...    .  Stop.
Open File

也是一样的,


image.png

你可能感兴趣的:(解决最新ndk导致android.mk项目报错Android NDK: INTERNAL ERROR: The armeabi ABI should have exactly one archi...)