ERROR:ABIs [armeabi] are not supported for platform.Supported ABIs are [arm64-v8a, armeabi-v7的完美解决方案

2020-12-25 16:26:47

参考地址 ERROR:ABIs [armeabi] are not supported for platform.Supported ABIs are [arm64-v8a, armeabi-v7的完美解决方案

今天在运行NDK工程时出现ERROR: ABIs [armeabi] are not supported for platform. Supported ABIs are [arm64-v8a, armeabi-v7a, x86, x86_64].

原因 ndk版本问题

在ndk(v17)开始已经不在支持mips、armeabi、mips64等CPU架构只支持armeabi-v7a, arm64-v8a, x86, x86_64。而自己工程的ndk版本是20,因此报错。

解决办法:

  1. build.gradle中移除armeabi mips等ABI配置,缺点就是不支持armeabi mips等ABI,即生成不了对应的so文件,不完美

  2. 要兼容armeabi mips等ABI,需修改ndk的版本降级到v16 ,并替换AS里NDK或者修改ndk-bundle路径即可 如下图:
    在这里插入图片描述在这里插入图片描述

附上ndk16版本的下载地址

Mac版本: https://pan.baidu.com/s/1xJ2f_5mjV0yjj8ONftunQg 提取码: 5kin
Windows64:链接: https://pan.baidu.com/s/1toP3wqhq48URzCPC3sg30w 提取码: cyjb


  • 2023-09-21 16:49:06

    用webpack.ProvidePlugin来解决Photo-Sphere-Viewer旧版本浏览器兼容问题

    上篇文章已经搭建了最基本的项目,我用手机下载了一个版本62.点开头的chrome apk来测试。 果真白屏,啥也没有,也看不到报错信息。 赶紧安装 vconsole ,重启,刷新,依然白屏,连vconsole也没有。这可咋弄。 想了下,这浏览器老的是可以呀,还得修改编译参数,加大es5的处理。 根目录有一个配置文件 .browserslistrc 里面的配置如下