I have a base feature module, and a feature module (you could call it the \"child\"). The base feature module has a strings.xml file asset containing:
Your base and child modules have different package names - let's say they are com.example.base
and com.example.child
. Each contains its own set of resources, and their identifiers will be collected in separate R packages:
com.example.base.R
com.example.child.R
Because you're trying to access a resource defined in base module, you need to reference it with the fully qualified name of the variable, which is com.example.base.R.string.app_string
.