title: Assertion Error in Android Studio when trying to compile the working project
body: <p>While I was trying to build my working project in the updated Android Studio (0.3.6), I got the below error message. It works fine when I build via CLI.</p>
  
  <pre><code>java.lang.AssertionError
  at com.android.tools.idea.gradle.compiler.AndroidGradleBuildProcessParametersProvider.getVMArguments(AndroidGradleBuildProcessParametersProvider.java:101)
  at com.intellij.compiler.server.BuildManager.launchBuildProcess(BuildManager.java:921)
  at com.intellij.compiler.server.BuildManager.access$1900(BuildManager.java:121)
  at com.intellij.compiler.server.BuildManager$11$2.run(BuildManager.java:666)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:37)
  at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:435)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
  at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:724)
  at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)
  </code></pre>
  
  <p>I already opened the issue <a href="https://code.google.com/p/android/issues/detail?id=62422">here</a>.</p>
  
  <p>However, it only happens to the existing project. Android Studio can build newly created projects.</p>
  
  <p>I am confuse whether this is a bug of Android Studio or is there any setting I need to change to my existing project?</p>