美文网首页
HarmonyOS NEXT-ERROR: Failed :en

HarmonyOS NEXT-ERROR: Failed :en

作者: 筱宓dawnLing | 来源:发表于2024-07-29 13:39 被阅读0次

    导入线上项目报错信息如下:

    > 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 
    
    image.png

    解决方法:
    1.在项目根目录下找到build-profile.json5文件删除里面的签名代码


    image.png

    2.点击


    image.png
    3.点击File > Project Structure... > Project > SigningConfigs界面勾选“Support HarmonyOS”和“Automatically generate signature”,点击界面提示的“Sign In”,使用华为帐号登录。等待自动签名完成后,点击“OK”即可。
    image.png

    相关文章

      网友评论

          本文标题:HarmonyOS NEXT-ERROR: Failed :en

          本文链接:https://www.haomeiwen.com/subject/mskwhjtx.html