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
Comments
Post a Comment