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

navArgs()方法不能用 #2

Closed
helloworld10010 opened this issue Oct 15, 2020 · 2 comments
Closed

navArgs()方法不能用 #2

helloworld10010 opened this issue Oct 15, 2020 · 2 comments

Comments

@helloworld10010
Copy link

删掉官方的androidx.navigation:navigation-fragment后,获取参数的扩展不能用了,请问咋整
Dingtalk_20201015173626

@KunMinX
Copy link
Owner

KunMinX commented Oct 15, 2020

@helloworld10010

修改一下依赖,将 ktx 依赖中对官方 java 包的依赖排除掉即可:

implementation('androidx.navigation:navigation-fragment-ktx:2.3.1') {
        exclude group: 'androidx.navigation', module: "navigation-fragment"
}
implementation 'com.kunminx.archi:smooth-navigation:3.3.2-beta5'

@helloworld10010
Copy link
Author

helloworld10010 commented Oct 16, 2020

readme里提到的androidx.navigation:navigation-fragment 是java用的,kotlin用户不用在意,直接用楼上 ktx那个exclude版本
Dingtalk_20201015173626

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

No branches or pull requests

2 participants