ERROR: "armeabi-v7a" not support
2024-07-04 本文已影响0人
survivorsfyh
IDE 从 devecostudio-mac-4.1.3.700 升级至 devecostudio-mac-5.0.3.403 后抛出了如下异常:
ERROR: "armeabi-v7a" not supported for HarmonyOS.
![](https://img.haomeiwen.com/i3095156/520f9d5c498f367c.jpg)
解决办法
需 entry/build-profile.json5 的 abiFilters 中移除 "armeabi-v7a";
{
"apiType": "stageMode",
"buildOption": {
"externalNativeOptions": {
"abiFilters": ["arm64-v8a", "x86_64"],
"path": "./src/main/cpp/CMakeLists.txt",
"arguments": "",
"cppFlags": "",
}
},
}
且校验下当前 SDK 版本与 build-profile.json5 中是否匹配,具体如下图
![](https://img.haomeiwen.com/i3095156/b4bb4bd10c73faaf.jpg)
如上配置相互均匹配好后,重新尝试编译项目
![](https://img.haomeiwen.com/i3095156/3d390bf54d02cbe5.jpg)
![](https://img.haomeiwen.com/i3095156/969ee39d8b7e721d.jpg)
以上便是此次分享的全部内容,希望能对大家有所帮助!