: 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 128 ms
报错为HarmonyOS 与第三方库不兼容的问题,安装第三方库时 安装的为最新版本,打开第三方库选择兼容的版本安装就好。
例如我安装的第三方库axios为最新版 只能兼容HarmonyOS api的版本为12 而我用的版本为9 因此报错,
将三方库版本安装低版本就可以解决上述问题
访问成功!