2

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?

friedger
  • 645
  • 7
  • 21
  • 1
    It turned out that the dependencies mixed up the resources. Two dependencies defined the same color. Moving one down in the dependency tree solved this issue. – friedger Sep 05 '17 at 09:32
  • Please, add it as an answer (and accept afterwards), so the question won't remain unanswered. – Volo Sep 22 '17 at 12:23

1 Answers1

2

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

friedger
  • 645
  • 7
  • 21
  • 1
    Your issue may have been the result of not using distinct/unique names for your resources. See https://developer.android.com/topic/instant-apps/faqs.html#project-structure "Can I share resources between features?" – TWL Nov 15 '17 at 18:02