Unable to execute dex: GC overhead limit exceeded in Eclipse Unable to execute dex: GC overhead limit exceeded in Eclipse android android

Unable to execute dex: GC overhead limit exceeded in Eclipse


It can be fixed by changing the VM values in Eclipse.ini. Set the values to 512 and 1024 as below:

openFile--launcher.XXMaxPermSize512M-showsplashorg.eclipse.platform--launcher.defaultActionopenFile-vmargs-Dosgi.requiredJavaVersion=1.5-Xms512m-Xmx1024m

The changed area in imageenter image description here


For me following steps worked

1) Open eclipse.ini file2)changed-Xms40m-Xmx512mto -Xms512m-Xmx1024m3)Restart eclipse

See here


eclipse.ini look like this.

-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212-productorg.eclipse.epp.package.jee.product--launcher.defaultActionopenFile-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m--launcher.defaultActionopenFile--launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.6-XX:MaxPermSize=256m-Xms40m-Xmx512m-Xmx1024m