title: Android Studio using 100% CPU on an i7 processor for project Rebuild
body: <p>My Windows 7 machine has a quad core i7 processor.  When I Rebuild my project, it takes on average 25 seconds.  And when I launch the app, it takes on average 36 seconds (before the app is uploaded to the device).</p>
  
  <p>I have 588 files in my project's /src folder, which includes all of my java and xml code.  I've got two .so libs each 5MB and 7 jars in my /libs folder.</p>
  
  <p>See my attached screenshot.  As you can see my CPU is maxed out at 100% the entire time.  My iTunes music pauses, and I get a "Poor Performance" pop-up in the lower right hand corner of my windows taskbar.  That's how bad it is.</p>
  
  <p>I'm using Android Studio 1.2.1.1</p>
  
  <p>Most of the time is spent during the preDex and dex operations.  </p>
  
  <p>Here's what I've tried so far (separately, I haven't tried them all together):</p>
  
  <ol>
  <li>adding gradle.properties -> "org.gradle.daemon=true" </li>
  <li>Power Saving</li>
  <li>Mode Invalidate Caches / </li>
  <li>Restart Global Gradle Setings -> Offline</li>
  <li>work Compiler -> Make project automatically</li>
  </ol>
  
  <p>Nothing has worked yet.  I can't imagine that this is a common problem, am I right?  Am I being too imaptient because this really is that much slower than Eclipse?  </p>
  
  <p>I guess my questions are:</p>
  
  <ol>
  <li>Could this be due to the size of my jars or so files?</li>
  <li>I tookover a project that had many nested views in XML files. Could this be causing a problem?</li>
  </ol>
  
  <p>I'm really reaching for straws so if anyone has any information, esepecially why the dex operation is taking up so much CPU, that would be awesome.</p>
  
  <p>I guess it goes without saying that this is happening if I edit an XML file, do a rebuild, and then launch the app.  If there's nothing to clean and rebuild... 
  when I just do a Make Project... the average build time is 3 seconds.</p>
  
  <p><img src="https://i.stack.imgur.com/nr7nk.png" alt="enter image description here"></p>