Unable to execute dex: GC overhead limit exceeded

Have you gotten these errors?

[2013-04-03 00:00:00 - Dex Loader] Unable to execute dex: GC overhead limit exceeded
[2013-04-03 00:00:00 - OsmAnd] Conversion to Dalvik format failed: Unable to execute dex: GC overhead limit exceeded

I have a few times now and decided to learn how to fix it. The error is caused by Eclipse not having enough memory for large projects.

Change some values in your Eclipse.ini file. This file is located wherever you downloaded Eclipse. If you don’t know where that is, then check your Downloads folder. Depending on which version of Eclipse you are using, the folder may either be called something like “eclipse-mobile-juno-SR1-win32-x86_64″ or “adt-bundle-windows-x86_64-20130219″, if you didn’t already move the eclipse folder from within it.

When you open Eclipse.ini, you should see something like:


Change the two values at the bottom to something like the following and you’ll be better off. Just restart Eclipse for the changes to take effect.


Source: http://docs.oseems.com/general/application/eclipse/fix-gc-overhead-limit-exceeded

2 Responses to “Unable to execute dex: GC overhead limit exceeded”

  1. […] ここに解決方法が書いてあった。「eclipse.ini」を編集すれば直る。 […]

Leave a Reply

You must be logged in to post a comment.