HarmonyOS 项目更换包名后,运行失败
项目更换包名后,运行失败,运行时报错:
> hvigor ERROR: Failed :logger:default@SignHsp...
> 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.hongmeng.fenqile, BundleName in SigningConfigs: com.harmony.fenqile.
at /Users/xxx/DevEcoStudioProjects/fenqile_harmony/fenqile_harmony_next/build-profile.json5
> hvigor ERROR: BUILD FAILED in 49 s 111 ms
> hvigor WARN: Can not getEventById:'e44c136c-086a-42fb-b406-e8b693e34e11' from MetricCacheService.
> hvigor WARN: Can not getEventById:'2159a5d6-a800-4fab-b1ae-859894abc1c2' from MetricCacheService.
> hvigor ERROR: Failed :animations:default@SignHsp...
> 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.hongmeng.fenqile, BundleName in SigningConfigs: com.harmony.fenqile.
at /Users/xxx/DevEcoStudioProjects/fenqile_harmony/fenqile_harmony_next/build-profile.json5
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
上架包名问题,如果要更换包名,是不是只能重新建一个项目?另外,包名有什么要求吗?
1415浏览 • 1回复 待解决
HarmonyOS 项目接入flutter后无法运行
1280浏览 • 1回复 待解决
HarmonyOS 添加权限后运行安装失败
2406浏览 • 1回复 待解决
HarmonyOS node项目迁移,fsfs-extra模块有什么成熟的替换包吗
968浏览 • 1回复 待解决
HarmonyOS 项目使用Migrate Assistant自动迁移完成后,运行flutter项目报错
1740浏览 • 1回复 待解决
HarmonyOS 在项目结构中修改项目包名
2317浏览 • 1回复 待解决
HarmonyOS项目能修改包名吗?
1876浏览 • 1回复 待解决
HarmonyOS 运行Flutter项目崩溃
1403浏览 • 1回复 待解决
HarmonyOS 换包名,证书需要重新生成吗?如果发布证书废除会影响线上用户吗?
1217浏览 • 1回复 待解决
codelabs上的项目支持直接运行在真机上吗?还是需要更改包名到AppGallery创建项目?
7566浏览 • 1回复 待解决
适配Harmony OS Developer Preview1 SDK后,项目运行报错
3981浏览 • 1回复 待解决
HarmonyOS IDE添加项目外的模块,编译成功后,运行crash
1208浏览 • 1回复 待解决
求大佬告知如何修改项目包名?
1492浏览 • 1回复 待解决
新建HarmonyOS项目运行不起来
1755浏览 • 1回复 待解决
HarmonyOS 按照以下指导,申请调试证书,并更换证书,getToken失败
1474浏览 • 1回复 待解决
HarmonyOS 更换图标无效
1763浏览 • 2回复 待解决
从Android Studio项目迁移到DevEco Studio后同步失败,如何解决?
17365浏览 • 1回复 待解决
鸿蒙项目内嵌apk失败请教
12276浏览 • 3回复 待解决
HarmonyOS 引用react-native-sound,项目运行报错
1077浏览 • 1回复 待解决
HarmonyOS 引入RN后打包失败
1807浏览 • 1回复 待解决
HarmonyOS ffmpeg编译成功,运行到项目报错
2101浏览 • 1回复 待解决
HarmonyOS 更改项目的bundlename后报错
3562浏览 • 1回复 待解决
HarmonyOS 集成RN 5.0.0.100 后运行报错
1498浏览 • 1回复 待解决
JS开发主界面怎么更换?
6104浏览 • 1回复 待解决
修改包名后报错,请问如何解决?
7484浏览 • 1回复 待解决





















调整签名配置中的bundleName方法:打开DevEco Studio中的签名配置界面(File > Project Structure > Project > Signing Configs),确保签名配置中的bundleName与项目配置中的bundleName一致。
重新签名:在签名配置界面,勾选“Automatically generate signature”(如果是HarmonyOS工程,需同时勾选“Support HarmonyOS”),然后等待签名完成。