helooo, how to access layout (a_layout.xml) in mod...
# android
a
helooo, how to access layout (a_layout.xml) in module (common module) from other module (feature module) was include in b_layout.xml ? any idea? im trying with kotlin synthetic but error :
unresolved reference
a
Does your feature module have your common module too? Seems like it doesn't know about common module..
a
yes it does. I implement via build.gradle with
Copy code
implementation project(':common')
a
Check your import statement, you maybe importing R from feature module not common module
m
as stated from @Anes there’s 2 approach: 1. use full-qualified import package, e.g:
your.common.module.R.drawable.ic_logo
2. or, you can import aliasing in kotlin, e.g:
Copy code
import your.common.module.R as CR

CR.drawable.ic_logo
@adeyds