title: java.lang.OutOfMemoryError: unable to create new native thread
body: <p>Recently updated to android 2.2 .</p>
  
  <p>tried opening an existing project. It prompted me to convert, I accepted. The project imported successfully but whenever I tried building, I get:  </p>
  
  <pre><code>Error:Execution failed for task ':app:mergeDebugResources'. &gt; java.lang.OutOfMemoryError: unable to create new native thread
  </code></pre>
  
  <p>I have added :</p>
  
  <pre><code>org.gradle.daemon=false
  GRADLE_OPTS="-Xmx2048m -Xms2048m -XX:MaxPermSize=1024m"
  org.gradle.jvmargs=-XX:MaxPermSize=512m
  </code></pre>
  
  <p>to gradle.properties. Still, it hasn't worked.</p>