问题描述:
ERROR: Failed :entry:default@MergeProfile...
> hvigor ERROR: The compatibleSdkVersion 9 cannot be smaller than version 12 declared in library [:library]
as the library might be using APIS not available in 9
> hvigor ERROR: BUILD FAILED in 621 ms
原因分析:
参考过很多已有的文章后,发现大概率是版本未修改一致导致的;
解决方案:
必须将图片内标注的 两个文件内部的 "@ohos/axios": "^2.2.0" 版本进行修改并保持一致:
原版:"@ohos/axios": "^2.2.0"
改为:"@ohos/axios": "2.2.0"