您当前的位置: 首页 >  华为

蓝不蓝编程

暂无认证

  • 0浏览

    0关注

    706博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

华为鸿蒙Demo代码竟然编译不过,真是有点不该啊。

蓝不蓝编程 发布时间:2021-10-12 18:12:14 ,浏览量:0

背景

下载了鸿蒙官方demo中的二维码demo库, 但是编译却不通过,哎 https://gitee.com/harmonyos/harmonyos_codelabs

报错信息
Execution failed for task ':entry:preBuild'.
> Check if 'storeFile' is configured correctly, it can't be null or empty.
  Please configure 'debug' signingConfigs in File -> Project Structure -> Modules -> entry -> Signing Configs.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

问题原因

开发人员在代码里放进入证书配置信息,但是并没有上传证书。当然放了,也没用,因为项目中配置的是本地绝对路径:

D:\sign\phone.p12
D:\sign\KaRaoKePhoneDebug.p7b
D:\sign\phone.cer
解决方案

删除整个signingConfigs节点

完整源代码

修复后的代码,我放在下面这个路径了。 后面要是还有其他项目有问题,我就一起修改了。 https://gitee.com/hspbc/harmonyos_codelabs/tree/master/QRCodeDemo

关于我

厦门大学计算机专业|华为八年高级工程师 十年软件开发经验,5年编程培训教学经验 目前从事编程教学,软件开发指导,软件类毕业设计指导。 所有编程资料及开源项目见https://cxyxy.blog.csdn.net/article/details/120405881

关注
打赏
1639405877
查看更多评论
立即登录/注册

微信扫码登录

0.9498s