Did any of you enabled `android.nonTransitiveRClas...
# android
g
Did any of you enabled
android.nonTransitiveRClass=true
? I’m wondering what to do with include layout on xml referring a layout from another gradle module, when using databinding.
😶 3
f
We did recently and it mostly Just Works ™️ . Using resources in XML via eg.
@layout/foo
works ok even across modules. If your databinding uses an expression with
R.layout.foo
, then you need to use a qualified name to R in other module (or a correct databinding import). Do you face a specific issue and see an error? Or just checking before even trying?
g
Yeah, I did a sample project and I realized there’s nothing wrong with non transisitve r classes + databinding, it may be something from my project. Btw, thanks for sharing your experience, it helped!
101 Views