Not enough memory to complete the requested operation - Android studio

I've been using Android Studio 2.1 for some time now, and in my previous projects, jus fine seemed to work. But now I get this error: enter image description here

This stuck with me for a while, until I decided on google solutions and got some informational data, such as how to increase the heap and it seemed to work for the OP.

I have not had time yet.

I directly contacted the studio64.vmoptions file (although AS clearly recommended otherwise, but I was desperate)

I noticed that the problem arose some time after the Google Places API was interleaved, but I can’t establish a connection between them.

Any suggestions? I could really use some help, my unfilled peeling job :(

Here's what my vmoptions look like:

 # custom Android Studio VM options # # *DO NOT* modify this file directly. If there is a value that you would like to override, # please add it to your user specific configuration file. # # See http://tools.android.com/tech-docs/configuration # -Xms512m -Xmx2048m -XX:MaxPermSize=512m -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 -XX:+HeapDumpOnOutOfMemoryError -Dawt.useSystemAAFontSettings=lcd 

Just extra info: I'm on the Linux operating system.

+6
source share

All Articles