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

kotlin-android-extensions插件已经被弃用了 #106

Open
Roc-egg opened this issue Mar 7, 2022 · 2 comments
Open

kotlin-android-extensions插件已经被弃用了 #106

Roc-egg opened this issue Mar 7, 2022 · 2 comments

Comments

@Roc-egg
Copy link

Roc-egg commented Mar 7, 2022

鸡哥,kotlin-android-extensions插件被弃用了,kotlin最新版本编译无法通过,需要把插件删除掉,更新升级一下鸡哥

@hegaojian
Copy link
Owner

这个在考虑了,后面会删除掉 kotlin-android-extensions, 用 viewBinding 或者 dataBinding 去替换

@andrewliu1345
Copy link

删除掉 kotlin-android-extensions, 后用 viewBinding 或者 dataBinding 去替换,结果里面嵌套的 viewBinding 返回为空,直接保持。需要手动去bind() 比如:
includeViewpager = IncludeViewpagerBinding.bind(mDatabind.root)
viewPager = includeViewpager.viewPager
难道要在inflateBindingWithGeneric里 递归bind()?

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

3 participants