Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Unable to execute dex: GC overhead limit exceeded"

I am designing an android application with eclipse. When I try to run I see this window:

enter image description here

The message is

"Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded"

like image 447
Angbeny Finch Avatar asked Mar 09 '14 13:03

Angbeny Finch


1 Answers

Already asked and already solved, more than once.. BTW you should edit the eclipse.ini file and give more Virtual Memory to it!

So, for example:

--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m

Those are my default values.. try with something like that

--launcher.XXMaxPermSize
512M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m

Look here for more details: Unable to execute dex: GC overhead limit exceeded in Eclipse

I also find useful when something like GC overhead problems happen this solution: https://stackoverflow.com/a/20461943/3443362 If you don't have so much RAM on your PC/laptop this last suggestion is musch more better..

like image 64
brainvision Avatar answered Oct 22 '22 15:10

brainvision