HarmonyOS hap跳hsp页面无法跳转

hap包(入口)跳转hsp页面,跳转不过去报错:

“fail to GetDependentBundleInfo from server, error code: 8521226”
HarmonyOS
2024-12-25 12:19:49
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
put_get

hap跳hsp参考以下两种方式:

1、使用命名路由,参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-router-V5#routerpushnamedroute10

2、使用特定的跳转方法(页面路由跳转),参考链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/in-app-hsp-V5#页面路由跳转

跳转至hsp内页面,需满足两个条件:

1、项目配置依赖hsp。

2、router跳转的url按照如下格式:

‘@bundle:包名(bundleName)/模块名(moduleName)/路径/页面所在的文件名(不加.ets后缀)’
分享
微博
QQ
微信
回复
2024-12-25 15:42:47
相关问题
模块间页面跳转怎么
685浏览 • 1回复 待解决
HarmonyOS Har静态包内部页面无法跳转
813浏览 • 1回复 待解决
HarmonyOS webview加载页面无法显示
1091浏览 • 1回复 待解决
HarmonyOS 分屏模式下页面无法滑动
146浏览 • 1回复 待解决
HarmonyOS 列表多选页面无法刷新
268浏览 • 1回复 待解决
HarmonyOS scroll嵌套list页面无法滑动
385浏览 • 1回复 待解决
HarmonyOS如何实现hap页面跳转
753浏览 • 1回复 待解决
HarmonyOS HAP引用HSP问题
327浏览 • 1回复 待解决
HarmonyOS 无法跳转电话拨号页面
145浏览 • 1回复 待解决
提问
该提问已有0人参与 ,帮助了0人