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 中是否匹配,具體如下圖
如上配置相互均匹配好后,重新嘗試編譯項目
以上便是此次分享的全部內容,希望能對大家有所幫助熟尉!