title: Android Studio: "Could not reserve enough space for object heap" when making module
body: <p>I tried to use Android Studio 0.1 to build a small project for practice, but when I make my module, Android Studio says:</p>
  
  <pre><code>Android Dex: [(Module Name)] Error occurred during initialization of VM
  Android Dex: [(Module Name)] Could not reserve enough space for object heap
  </code></pre>
  
  <p>I'm using Windows 7 64-bit, JDK 1.7, with 8GB RAM. I'm not familiar with gradle and don't have an idea how to workaround it. My another almost same PC does not have this problem.</p>
  
  <p>I have tried to modify <code>studio.exe.vmoptions</code> in bin folder, and can see the right-down corner change to 742M when I set -Xmx768M. But the error still occurs. Also, if I want to set a larger value like <code>-Xmx2G</code>, the <code>studio.bat</code> shows:</p>
  
  <pre><code>Error occurred during initialization of VM
  Could not reserve enough space for object heap
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.
  </code></pre>
  
  <p>Then the Android Studio just does not start up.</p>
  
  <p>Is there a way to make my Android Studio usable? Thank you very much.</p>