title: Android Studio fails building project in task mergeDebugResources
body: <p>I'm trying to move my project from Eclipse to Android Studio.
  After creating all the modules (the app has a few library project), Gradle fails with this error all the time:</p>
  
  <pre><code>Error:Execution failed for task ':AppLib:mergeDebugResources'.
  &gt; Unsupported type 'database' in file C:\Android\Code\AS_workspace\SuperApp\Infra\src\main\res\values\database.xml
  </code></pre>
  
  <p>This XML file is defined in a library project and is overridden with the same name in the app module.</p>
  
  <p>Needles to say this works perfectly well in Eclipse for ages...</p>
  
  <p>Any idea?</p>
  
  <p>Thanks. </p>
  
  <p>Adding the build.gradle files:</p>
  
  <p>This is the app file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 21
      buildToolsVersion "21.1.1"
  
      defaultConfig {
          applicationId "com.app.superapp"
          minSdkVersion 10
          targetSdkVersion 21
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile project(':library1')
  }
  </code></pre>
  
  <p>This is the file for module :library1 which is an android library:</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
      compileSdkVersion 21
      buildToolsVersion "21.1.1"
      defaultConfig {
          minSdkVersion 10
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      productFlavors {
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile project(':library2')
  }
  </code></pre>
  
  <p>This is the file for module :library2 which is also a library:</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
      compileSdkVersion 21
      buildToolsVersion "21.1.1"
      defaultConfig {
          minSdkVersion 10
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      productFlavors {
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile project(':AppLib')
  }
  </code></pre>
  
  <p>And now for the library for AppLib:</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
      compileSdkVersion 21
      buildToolsVersion "21.1.1"
      defaultConfig {
          minSdkVersion 10
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      productFlavors {
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile project(':GooglePlayServices')
      compile project(':facebook')
  }
  </code></pre>
  
  <p>I have a lot of libraries but once I'll fully understand Gradle's flavor I'll be able to decrease them to two modules.</p>
  
  <p>Database.xml in the AppLib is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  
      &lt;item name="NAME" format="string" type="database"/&gt;
      &lt;item name="TABLE_NAME" format="string" type="database"/&gt;
      &lt;item name="DATABASE_VERSION" format="integer" type="database"&gt;101&lt;/item&gt;
      &lt;item name="MIN_APPLICATION_DATABASE_VERSION" format="integer" type="database"&gt;10&lt;/item&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>Database.xml in the SuperApp just adds the strings.</p>