修改項(xiàng)目 app id 后通過(guò)真機(jī) build run 的時(shí)候拋出了如下異常;
項(xiàng)目中更改后的配置與真機(jī)的不匹配;
{
app: {
bundleName: "com.xxxxxx.xxx_harmony",
vendor: "xxxxxx",
versionCode: 1,
versionName: "3.5.00",
icon: "$media:app_icon",
label: "$string:app_name",
},
}
修改后直接 build 可能會(huì)拋出如下異常:
需重新配置下簽名即可
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.xxxxxx.xxx_harmony, BundleName in SigningConfigs: com.example.xxx_harmony.
解決辦法
重新配置簽名方式如下:
將現(xiàn)有 build-profile.json5 中的 signingConfigs 清空;
重新 new 新的配置后, Run 即可
以上便是此次分享的全部?jī)?nèi)容蓬痒,希望能對(duì)大家有所幫助漫雷!