title: Exclude package from external JAR in Android Studio during Gradle build process
body: <p>Lets say I have an Android Studio project and JAR x.jar which I include in my build.gradle:</p>
  
  <pre><code>compile files('libs/x.jar')
  </code></pre>
  
  <p>How can I tell Gradle to not include the package xyz in the x.jar? Is there something like:</p>
  
  <pre><code>compile files('libs/x.jar'){
      exclude: "xyz"
  }
  </code></pre>
  
  <p>Or is this not possible for a jar which I can't build myself (and exclude the sources while building the jar)?</p>