导入线上项目报错信息如下:
> hvigor Finished :entry:default@CompileArkTS... after 33 s 904 ms
> hvigor Finished :entry:default@GeneratePkgModuleJson... after 5 ms
> hvigor Finished :entry:default@PackageHap... after 2 s 187 ms
> hvigor ERROR: Failed :entry:default@SignHap...
> hvigor ERROR: Invalid storeFile value. Make sure it is not null or empty. The file must be included in '/Users/.../default_NZ_w7SK148phLnhSvSO-mSPC9QeBzR_DmBY-tWu3CQ8=.p12'.
Detail: Please check signingConfigs in root project build-profile.json5
at D:\...\build-profile.json5
> hvigor ERROR: BUILD FAILED in 40 s 836 ms
![](https://img.haomeiwen.com/i3989735/8e9b21748b6d3cc5.png)
解决方法:
1.在项目根目录下找到build-profile.json5文件删除里面的签名代码
![](https://img.haomeiwen.com/i3989735/01c5babbae0ea969.png)
2.点击
![](https://img.haomeiwen.com/i3989735/fbea5395a6124ac2.png)
3.点击File > Project Structure... > Project > SigningConfigs界面勾选“Support HarmonyOS”和“Automatically generate signature”,点击界面提示的“Sign In”,使用华为帐号登录。等待自动签名完成后,点击“OK”即可。
![](https://img.haomeiwen.com/i3989735/f5039c1337fc7b8d.png)
网友评论