Eclipse with Android Sdk, Error: Java Heap Space

eclipse with Android sdk, ERROR: Java heap space

Try this

In Run->Run Configuration find the Name of the class you have been running, select it, click the Arguments tab then add:

  -Xms512M -Xmx1524M

to the VM Arguments section

Few useful links

What are the best JVM settings for Eclipse?

Error "java heap size" in Eclipse Android?

Edit:

Your eclipse.ini settings will take effect only if you change following:

Run -> External Tools -> External Tool

Configurations. go to configuration that u use, under jre tab -select option

Run in same JRE in workspace.

Eclipse Java heap space

You need to increase the allocated memory for your running configuration, not for eclipse.
Add the -Xms256m and -Xms1024m under VM arguments field.

Sample Image

Out of memory error: Java heap memory on Android Studio

I've finally solved it by limiting the Google Play service in gradle dependency.

The problem however was caused by the Google Play service, and by simply change it to a specific library, it is now solved.

 com.google.android.gms:play-services-base:6.5.87

UPDATE

More info on android guides

How to solve heap space error?

you have to increase -Xms and -Xmx in the eclipse.ini file, and restart eclipse.



Related Topics



Leave a reply



Submit