Arouter 使用问题

来源:互联网 发布:制作app直播软件 编辑:程序博客网 时间:2024/05/16 14:34

这篇文章路偶在会用Arouter过程中 问题将会不断更新

Q1:ARouter::There is no route match the path
解决方案:
1. 自定义一个Arouter拦截器拦截器试试 ,里面直接 callback.onContinue(postcard);
2. 如果你是组件化开发,那么请看你 主App的build.gradle中,会否把你需要路由的模块引入进来。如 我想路由用户模块,那么:
if (isRealse.toBoolean())
{
compile project(‘:minemodule’)
compile project(‘:mywork’)
compile project(‘:myuser’)
}else {
compile project(‘:hxhwidget’)
compile project(‘:xiaoaiwidget’)
}
注意加粗的地方,如果你模块没引入进来,那么Arouter铁定找不到

原创粉丝点击