问题

修改包名后Bundle name已变成修改后的包名,但Signing Configs中的包名未修改成功,运行时报如下错误:
ERROR: BundleName in the project configuration does not match that in the SigningConfigs.

解决方案

在修改完AppScope下的app.json5中的bundleName之后,使用真机调试的时候需要先把和AppScope同级别目录中的build-profile.json5中的:signingConfigs 字段改为 “signingConfigs”: [], 重新生成signingConfigs

Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐