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 后,xml 里面自定义 dataBinding 属性丢失问题 #67

Closed
jolly336 opened this issue Sep 17, 2019 · 5 comments
Closed

Comments

@jolly336
Copy link

jolly336 commented Sep 17, 2019

使用1.2.7 fat-aar gradle plugin,合并多 module 后,发现 module 里面布局文件中的自定义 dataBinding 属性丢失造成编译失败,是对 data-binding 支持有问题吗?

(fig1-module 源文件)
源文件
(fig2-编译失败 log)
error

@jolly336 jolly336 reopened this Sep 17, 2019
@jolly336 jolly336 changed the title 合并 aar 后,xml 里面 dataBinding 标签丢失问题 合并 aar 后,xml 里面自定义 dataBinding 标签丢失问题 Sep 17, 2019
@jolly336 jolly336 changed the title 合并 aar 后,xml 里面自定义 dataBinding 标签丢失问题 合并 aar 后,xml 里面自定义 dataBinding 属性丢失问题 Sep 17, 2019
@jolly336 jolly336 reopened this Sep 17, 2019
@kezong
Copy link
Owner

kezong commented Sep 17, 2019

目前是不支持合并data-binding的。

@jolly336
Copy link
Author

有支持计划时间吗?

@kezong
Copy link
Owner

kezong commented Sep 23, 2019

暂时没有

@kezong
Copy link
Owner

kezong commented Sep 23, 2019

不过之前试过,如果只在主module中引入data-binding,应该没有什么问题。

@jolly336
Copy link
Author

好的,多谢!回头也研究下 data-binding 原理,看能尝试支持下不 😄

@kezong kezong closed this as completed Sep 27, 2019
kezong added a commit that referenced this issue Sep 10, 2020
puboe added a commit to puboe/fat-aar-android that referenced this issue Sep 10, 2020
…mental-build

* 'master' of github.com:kezong/fat-aar-android:
  support merge data-binding files kezong#25 kezong#67
  Refactor duplicated code
  Avoid creation of preBuild tasks
  Avoid generateResources tasks creation
  Migrate sync task
  Migrate more tasks
  Migrate more tasks
  migrate more R related tasks
  Migrate R file task
  migrate mergeManifest tasks
  Migrate mergeJar tasks
  Migrate mergeClasses tasks to config avoidance API
  Fix some warnings

# Conflicts:
#	source/src/main/groovy/com/kezong/fataar/RProcessor.groovy
#	source/src/main/groovy/com/kezong/fataar/VariantProcessor.groovy
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