HarmonyOS

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.

解决办法

需 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 中是否匹配,具体如下图

如上配置相互均匹配好后,重新尝试编译项目




以上便是此次分享的全部内容,希望能对大家有所帮助!

上一篇 下一篇

猜你喜欢

热点阅读