ccj659/clean-project-architecture

Arouter build的fragment为空

caojie891026 opened this issue · 1 comments

在initViewpager中, Fragment home = (Fragment) ARouter.getInstance().build(RouterConstants.HOME_MUDULE_FRAGMENT_HOME_HOME).navigation();
Fragment meizi = (Fragment) ARouter.getInstance().build(RouterConstants.MEIZI_MUDULE_FRAGMENT_HOME_MEIZI).navigation();
Fragment user = (Fragment) ARouter.getInstance().build(RouterConstants.USER_MUDULE_FRAGMENT_HOME_USER).navigation();三个fragment都是空的,我断点看到 RouteMeta meta = Warehouse.providersIndex.get(serviceName)这里,传进来的PathReplaceService没有再providerIndex这个map里面,导致meta为空,这个原因是怎么造成的,版本不对吗?

gradle.properties文件中 isModule属性 true代表模块开发,false代表合并到主app.

isModule=true

找不到目的地,是因为现在是模块开发,改为false即可运行主app.