HarmonyOS项目能修改包名吗?

项目进行开发同时修改包名。

app.json5中修改了bundleName 为 新的包名。

但是提示了错误。

hvigor ERROR: Failed :entry:default@SignHap… 
hvigor ERROR: BundleName in the project configuration does not match that in the SigningConfigs. 
Detail: Open the project-level build-profile.json5 file. Change the bundleName value 
to that in the SigningConfigs. Otherwise, go to the app.json5 file and change the bundleName value there. 
BundleName in Project: com.xxx.xxxx, BundleName in SigningConfigs: com.xxx.xxx. 
at D:\Huawei\xxx\build-profile.json5
HarmonyOS
2024-09-13 13:30:49
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
put_get

修改包名需要重新配置签名文件,签名配置可以参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-publish-app-0000001053223745-V5#section280162182818

分享
微博
QQ
微信
回复
2024-09-13 18:22:45
相关问题
HarmonyOS项目结构中修改项目
2176浏览 • 1回复 待解决
求大佬告知如何修改项目
1390浏览 • 1回复 待解决
修改后报错,请问如何解决?
7359浏览 • 1回复 待解决
修改Button的默认样式
1398浏览 • 1回复 待解决
HarmonyOS 规则
1060浏览 • 1回复 待解决
HarmonyOS 更改,报错
1292浏览 • 1回复 待解决
HarmonyOS 升级迁移能否重复
905浏览 • 1回复 待解决
HarmonyOS 应用的命名规则
2900浏览 • 1回复 待解决
请问ets的项目调用js的chart组件
3885浏览 • 1回复 待解决
HarmonyOS 项目更换包后,运行失败
1395浏览 • 1回复 待解决
HarmonyOS 脚本安装项目
1369浏览 • 1回复 待解决