简书链接:解决最新ndk导致androidmk项目报错AndroidNDKINTERNALERRORThearmeabiABIsh
文章字数:126,阅读全文大约需要1分钟
错误提示
1 2 3
   | 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已经移除了支持
1 2 3 4
   | moduleName "xxxx"      abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a','x86_64'      //abiFilters 'armeabi'  }
   | 
 
https://stackoverflow.com/questions/50336033/error-android-studio-3-1-2-ndkbuild
再来看看阿里的例子
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
   | 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
 
   | 
 
也是一样的,
