title: How to exclude modules from google play services library?
body: <p>I'm working with an Android app and I'm trying to exclude modules from gms because I exceeded the limit of methods that can be referenced:</p>
  
  <blockquote>
    <p>com.android.dex.DexIndexOverflowException: method ID not in [0,
    0xffff]: 65536</p>
  </blockquote>
  
  <p>The <a href="http://developer.android.com/google/play-services/setup.html#split" rel="nofollow">documentation</a> shows an example using gradle, but the project I'm working on doesn't use gradle. Is there other way to do that? I'm using intellij idea 14, and the dependencies are configured manually using <em>Project Structure</em> window.</p>
  
  <p>I'm trying with <em>Project Structure -> Libraries -> Exclude</em> and then I select the library modules I don't need, but it's not working apparently. I'm not sure if that's the right way</p>
  
  <p>Also tried <em>File -> Settings -> Build, Execution, Deployment -> Compiler -> Excludes</em>. But seems like I can only exclude the whole library.</p>