title: trouble writing output: Too many method references: 67245; max is 65536. Solving with Proguard
body: <p>I've just reached the dex limit of 65536 methods and I am trying to solve this problem using proguard. Specifically I am trying to understand exactly what it is that Progurard tries to remove.</p>
  
  <p>Does proguard only check for unused classes/methods in my code (that I wrote), or does it go a step further and check my project's dependencies and all the transitive dependencies of those. What if I am only using 1 method from a 10,000 methods jar dependency? Also, if it does remove transitive depenedencies, does it automatically remove all unused transitive dependencies or does it just report back, and I would have to manually exclude them in my pom.xml for example by doing this:</p>
  
  <pre><code>  &lt;dependency&gt;
          &lt;groupId&gt;cn.pedant.sweetalert&lt;/groupId&gt;
          &lt;artifactId&gt;library&lt;/artifactId&gt;
          &lt;type&gt;aar&lt;/type&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.android.support&lt;/groupId&gt;
                  &lt;artifactId&gt;appcompat-v7&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>if I am not using the appcompat-v7 transitive dependency of the sweetalert dependency.</p>
  
  <p>Finally, while we are at it, is the default proguard config file shipped with android tools ok, or do I need to tweak it?</p>