Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用aar 加载 fragment #58

Closed
HuRuWo opened this issue Nov 22, 2017 · 2 comments
Closed

使用aar 加载 fragment #58

HuRuWo opened this issue Nov 22, 2017 · 2 comments

Comments

@HuRuWo
Copy link

HuRuWo commented Nov 22, 2017

获取到的fragment对象为空 ,但是直接new fragment 对象可以得到对象

依赖 aar 文件这样是无法获取的,但是直接依赖 moudle 可以获取到

        if(Router.build("IndexFragment").getFragment(this)!=null){
            fragments.add((Fragment) Router.build("IndexFragment").getFragment(this));
       }
@chenenyu
Copy link
Owner

chenenyu commented Nov 22, 2017

你说依赖的是个aar,而不是个module是吧? 参见readme最新集成方式,记得在初始化时把aar手动注册进去

@chenenyu
Copy link
Owner

Closed. 如果有其他问题, 可以reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants