In which module should the theme for an instant app be defined?

303 views Asked by At

After modularsing my app, the primary color changed from blue to orange. Hence, activity background, floating buttons, etc. changed.

The app theme is defined in the app module and uses @color/primary_color. The color is defined in the base module.

It looks like the primary color is picked up from the support library, not from my base module. Where is the correct place?

1

There are 1 answers

1
friedger On BEST ANSWER

Maybe the dependencies mixed up the resources. Two dependencies could defined the same color. Moving one down in the dependency tree solves this issue.