HarmonyOS 鸿蒙Next 路由问题:一个可以一个不可以(can't find this page pages)
HarmonyOS 鸿蒙Next 路由问题:一个可以一个不可以(can’t find this page pages) 同样的路由配置,demo可以跳转,而test不能跳转?????????(main_pages.json还得手动去加。。。。)
DevEco Studio 3.1.1 Release
Build Version: 3.1.0.501, built on June 20, 2023
Build #DS-223.8617.56.36.310501
Runtime version: 17.0.6+10-b829.5 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1536M
Cores: 8
Registry:
- external.system.auto.import.disabled=true
更多关于HarmonyOS 鸿蒙Next 路由问题:一个可以一个不可以(can't find this page pages)的实战教程也可以访问 https://www.itying.com/category-93-b0.html
请问楼主你的问题解决了吗 我也遇到了同样的问题
更多关于HarmonyOS 鸿蒙Next 路由问题:一个可以一个不可以(can't find this page pages)的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
直接把程序丢进本地模拟器运行路由没问题,previewer还是有问题的,可能跟我本地环境配置问题有关吧。
选择pages目录,点击右键,然后新建,选择page可创建界面。
这里创建page的确会在main_pages.json中自动添加,但页面路由还是不能用:
08-11 10:58:49.899 30776-28996 E C03900/Ace: [manifest_router.cpp(GetPagePath)-(0)] [Engine Log] can't find this page pages
08-11 10:58:49.899 30776-28996 E C03900/Ace: [page_router_manager.cpp(StartPush)-(0)] [Engine Log] this uri not support in route push.
08-11 11:00:17.282 6088-34544 E C03900/Ace: [manifest_router.cpp(GetPagePath)-(0)] [Engine Log] can't find this page pages
08-11 11:00:17.282 6088-34544 E C03900/Ace: [page_router_manager.cpp(StartPush)-(0)] [Engine Log] this uri not support in route push.
08-11 11:00:18.203 6088-34544 E C03900/Ace: [manifest_router.cpp(GetPagePath)-(0)] [Engine Log] can't find this page pages
08-11 11:00:18.203 6088-34544 E C03900/Ace: [page_router_manager.cpp(StartPush)-(0)] [Engine Log] this uri not support in route push。
提供下你当前代码,当前测试page路由不存在问题。
姓名: 张三
职业: 软件工程师
简介: 拥有超过十年的软件开发经验,专注于Web应用和移动应用开发。