0

android gradle resources exclude file not working. e.g.

android {
    sourceSets {
        androidTest {
            resources {
               srcDir "../../src/foo/resources"
               exclude "../../src/foo/resources/META-INF/foo.xml"
            }
        }

     }
}

The foo.xml is not excluded.

version: com.android.tools.build:gradle:3.4.1

eastwater
  • 4,624
  • 9
  • 49
  • 118

1 Answers1

0

Your tree shows that foo.xml is excluded in androidTest. You might want to change it to the main android node android.