title: Manage Google Maps API Key with Gradle in Android Studio
body: <p>I know Gradle is powerful and I would like to manage the API keys for development/produciton of Google Maps</p>
  
  <p>Currently I always need to manually comment one line and uncomment the other to make it work. Is there a way to do it automatically in Gradle with some custom release configuration ?</p>
  
  <pre><code>&lt;!-- MapView v2 API --&gt;
  &lt;uses-library android:name="com.google.android.maps" /&gt;
  &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="[MY_DEV_KEY]" /&gt;
  &lt;!-- PROD
  &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="[MY_PROD_KEY]" /&gt;
  --&gt;
  </code></pre>