garbage collection - How to solve java.lang.OutOfMemoryError: GC overhead limit exceeded error in android studio -


i using android studio 1.0 rc 64 bit linux.

when run application getting

"java.lang.outofmemoryerror: gc overhead limit exceeded" 

when searched on how solve error got solutions add:

  • -xx:-usegcoverheadlimit studio.vmoptions or studio64.vmoptions
  • -xmx2000m studio.vmoptions or studio64.vmoptions etc.

these did not work me.

please help. in advance

i solved issue adding

dexoptions {            incremental true            javamaxheapsize "4g"  }  

to android closure in build.gradle file. found answer in

outofmemoryerror: gc overhead limit exceeded


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -