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

VirtualAPK对Data-Binding的支持 #178

Closed
yandaoqiu opened this issue Feb 6, 2018 · 4 comments
Closed

VirtualAPK对Data-Binding的支持 #178

yandaoqiu opened this issue Feb 6, 2018 · 4 comments

Comments

@yandaoqiu
Copy link

目前Data-Binding接入会出现 空指针异常
image

@XiuLin
Copy link
Collaborator

XiuLin commented Mar 5, 2018

使用dev分支实验,我验证过并没有发现

@fcloud89
Copy link

fcloud89 commented Apr 3, 2018

是不是插件里databinding不支持?

@superqiaopu
Copy link
Collaborator

目前不支持 Data-Binding 框架。

使用该框架会在宿主包和插件包生成固定包名的 android.databinding.DataBinderMapper 类,在运行时通过VirtualAPK的类加载机制只会加载宿主中的类,因此使用DataBindingUtil.setContentView() 等 API 时会返回 null。

由于该框架使用范围较广,未来版本会考虑支持该框架。

@superqiaopu
Copy link
Collaborator

新版本已支持,请关注dev分支。

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

4 participants