Hi!, i would like to ask for help for solving an i...
# android
n
Hi!, i would like to ask for help for solving an issue that im currently facing, i'm working on a multi module project which has different build variants. One of those modules sets the color and theme, that same module has the mentioned build variants and code on the main source set. Weirdly on the AS IDE, when a function from the main source set calls R.color.colorPrimary it gets the color definition from the main source set instead of the active build variant. Those colors are being set on colors.xml, and also i don't know if the problem comes from the module that consumes the theming module, it only has the flavor dimesion but none of the product flavors from the theming module
not kotlin but kotlin colored 2
c
• Please remember this is a Slack team for Kotlin. If you have generic questions that are about a technology (which may or may not be used with Kotlin), maybe it’s better to use another forum, such as StackOverflow.
https://kotlinlang.org/docs/slack-code-of-conduct.html#basic-usage-guidelines
r
Are you importing the correct
R
? There's one for Android and one for your project. I don't know if that helps, but worth asking