title: Different parameters for dev and production environments using Gradle
body: <p>In an Android java project with Gradle build configured using Android Studio IDE, I want to have variables that change according to build environment.</p>
  
  <p>For instance, if there's a <code>public static final boolean USE_LOCAL_BACKEND = false;</code> in Utils.java, production should always have <code>false</code> value and development may want to have <code>true</code> to use a local server for debugging.</p>
  
  <p>I'm not an expert with Gradle, I'd appreciate a detailed guide on how to configure my project to have two different <code>properties</code> files for each environment, each has the same keys but with different values.</p>