Defining 'resValue' using an existing string definition
<p>I'm interested in defining my many flavors of my apps more so in the strings.xml files rather than the build.gradle.  Given multiple flavors, I'd like a simplified release/debug variant:</p>

<pre><code>  buildTypes {
    release {
        signingConfig signingConfigs.release
        resValue "string", "app_name", "@string/prod_name"
    }
    debug {
        applicationIdSuffix ".beta"
        resValue "string", "app_name", "@string/beta_name"
    }
</code></pre>

<p>Then in each of my build flavors' custom res/values/strings.xml files, I would define each their own "prod_name" and "beta_name".  I also want to use this similar framework for defining providers' authorities etc...  </p>

<p>This currently will build fine via gradle command-line, but fails to be recognized by Android Studio.</p>

<p>Android Studio Error:</p>

<p>I find this within 'generated.xml'</p>

<pre><code>&lt;!-- Values from build type: debug --&gt;
&lt;string name="app_name"&gt;@string/beta_name&lt;/string&gt;
</code></pre>

<p>Which is typical of how one string references another.  But this time Android Studio gives me this error:</p>

<pre><code>Error:(7, 29) No resource found that matches the given name 
(at 'app_name' with value '@string/beta_name').
</code></pre>

<p>I'm using Android Studio 2.1 Preview 5</p>