title: TeamCity build agent ignores gradle productFlavors for Android
body: <p>I have four productFlavors in my Android project: </p>
  
  <pre><code>productFlavors {
      blue {}
      red {}
      top {}
      bottom {}
  }
  </code></pre>
  
  <p>Also I have <code>string.xml</code> for each flavor and for two combinations: <code>blueTop</code> and <code>redTop</code>. Each <code>string.xml</code> contains its own <code>app_name</code>. </p>
  
  <p>So when I make apk in Android Studio using code like <code>gradlew assembleBlueTopRelease</code> the app names are correct, but when I run the TeamCity agent, it ignores all the other <code>string.xml</code>s and set names for all apks to default, specified in <code>main/res/values/strings.xml</code>.</p>