How to use Android 'flavor' strings.xml
<p>I have an app which will have free and paid versions.  I can successfully created 'flavors' in the build.gradle and created new folders under 'src'.</p>
<p>I have added a strings.xml to each flavor.</p>
<p>src/flavor1/res/values/strings.xml</p>
<p>src/flavor2/res/values/strings.xml</p>
<p>It is one bool:</p>
<pre><code>&lt;resources&gt;
    &lt;bool name=&quot;FullVersion&quot;&gt;false&lt;/bool&gt;
&lt;/resources&gt;
</code></pre>
<p>One flavor is true, one is false.  I don't have this same 'bool' in my 'strings.xml' under the main folder.</p>
<p>I am trying to reference this in a layout in the main folder to determine if something is enabled or disabled.</p>
<p><a href="https://i.stack.imgur.com/jfJYI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jfJYI.jpg" alt="enter image description here" /></a></p>
<p>Looks like this is what has been confusing me.  You're right.  It does work however, my enabled shows an error and the preview won't render because of it.
It does work though</p>