So I'm building a project using LibGdx and have had trouble for the past few days trying to fix this issue. I have followed many other posts about the same question but had no success.
Essentially as soon as I link my android project with
google-play-services-lib and try to debug, I have my project hover at 99% completion on the debug and then receive the following error:
Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded
This error is received even after I have increased my memory in eclipse.ini. From what I understand you have to keep increasing until it works and I have set it up to -Xms4600m and -Xmx4600m and still experience this issue. I figured thats a bit overkill (I only have 6gb of ram) so I have lowered it for now. There has to be some sort of different solution. Below is my current eclipse.ini settings. Am I missing something? I have tried updating to the latest google play service as well with no success. I am stumped on what to do...
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 -product org.eclipse.epp.package.java.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 1536M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 1536m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms2028m -Xmx4072m
I sincerely appreciate all the help I can get. Thanks in advance.