title: Cannot filter assets for multiple densities using SDK build tools 21 or later
body: <p>Due to an issue building my application in release mode with the gradle plugin 1.3.0, I have switched to 1.4.0 (beta 2), which fixes said build issue.</p>
  
  <p>However, whereas some flavors build perfectly, others have their build aborted with the following error message:</p>
  
  <blockquote>
    <p>Cannot filter assets for multiple densities using SDK build tools 21 or later. Consider using apk splits instead.</p>
  </blockquote>
  
  <p>I haven't found any reference to the sentence above, what should I do with the resources of these flavors, or even why this error only appears in a couple of flavors and not in all of them.</p>
  
  <p>Edit: build.gradle</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      signingConfigs {
          config {
          }
      }
      compileSdkVersion 23
      buildToolsVersion "23.0.1"
      defaultConfig {
          applicationId "com.example.appname"
          minSdkVersion 8
          targetSdkVersion 23
          versionCode 1
          versionName '0.0.1'
      }
      buildTypes {
          release {
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              minifyEnabled true
              zipAlignEnabled true
              signingConfig signingConfigs.config
          }
          debug {
              applicationIdSuffix 'debug'
              versionNameSuffix '_debug'
          }
      }
      flavorDimensions "googleplay"
      productFlavors {
          noplay {
              dimension "googleplay"
              versionCode Integer.parseInt(defaultConfig.versionCode + "0")
              buildConfigField "boolean", "HAS_GOOGLE_PLAY", "false"
  
              resConfigs "ldpi", "mdpi"
              // so far we are using the noplay flavor only for old devices, which do not have hidpi
          }
          play {
              dimension "googleplay"
              versionCode Integer.parseInt(defaultConfig.versionCode + "1")
              buildConfigField "boolean", "HAS_GOOGLE_PLAY", "true"
              minSdkVersion 9
          }
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
  
      // Google Play services (analytics)
      playCompile 'com.google.android.gms:play-services-analytics:8.1.0'
  
      // ActionBar and support libraries
      compile 'com.android.support:appcompat-v7:23.0.1'
      compile 'com.android.support:support-v4:23.0.1'
  }
  </code></pre>