title: Error:java.lang.OutOfMemoryError: GC overhead limit exceeded Android Studio
body: <p>I'm using a very good desktop machine with very good configuration 8 GB ram and a lot of free space too.</p>
  
  <p>while running the app in my device android studio is giving me this error all the time, </p>
  
  <pre><code>Error:java.lang.OutOfMemoryError: GC overhead limit exceeded
  
  Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
  com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
  </code></pre>
  
  <p><strong>my studio64.exe.vmoptions file</strong></p>
  
  <pre><code>-Xms256m
  
  -Xmx1024m
  
  -XX:MaxPermSize=350m
  
  -XX:ReservedCodeCacheSize=240m
  
  -XX:+UseConcMarkSweepGC
  
  -XX:SoftRefLRUPolicyMSPerMB=50
  
  -da
  
  -Djna.nosys=true
  
  -Djna.boot.library.path=
  
  -Djna.debug_load=true
  
  -Djna.debug_load.jna=true
  
  -Dsun.io.useCanonCaches=false
  
  -Djava.net.preferIPv4Stack=true
  
  -Didea.paths.selector=AndroidStudio2.2
  
  -Didea.platform.prefix=AndroidStudio
  
  -Didea.jre.check=true
  </code></pre>
  
  <p>please let me know .. I have disabled instant run feature too.</p>