title: How to use build types (debug vs release) to set different styles and app names?
body: <h2>Background</h2>
  
  <p>On Android Studio, you can have different build types, each has its own configuration, similar to product-flavors (as shown <a href="https://www.youtube.com/watch?t=239&amp;v=LCJAgPkpmR0" rel="noreferrer"><strong>here</strong></a>)</p>
  
  <h2>The problem</h2>
  
  <p>I wish that each time I have my app installed somewhere, I would immediatly know which type it was - release or debug, just by looking at it.</p>
  
  <p>For this, I think I can use the build.gradle file :</p>
  
  <pre><code>buildTypes {
      release {
          minifyEnabled true
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
      debug {
          debuggable true
      }
  }
  </code></pre>
  
  <p>Thing is, I don't know what to put there. I want the app name to be different (and yet have the string in the strings files, as it's translated), and I want to set the style of something in the app to be different (for example, the color of the action bar).</p>
  
  <p>I've found that I can use "resValue" (found about it <a href="https://stackoverflow.com/a/28465883/878126"><strong>here</strong></a>), but for some reason, no matter what I do, it won't compile: </p>
  
  <ul>
  <li>If the resource was already declared (like in the app-name, which is translated), it says the resource is duplicated </li>
  <li>If the resource wasn't declared, I can't reach it via code/xml.</li>
  </ul>
  
  <h2>The question</h2>
  
  <p>How do I use different resource values for the build types, even if they already exist?</p>