It's the first time I am using Proguard, I've noticed that if you add many custom rules to proguard-project.txt it takes obviously much more time for building. That's cause Eclipse to crash reporting a GC overhead limit exceeded and then I have to force the shut down of java because the editor continues to pop out error and alert dialogs. Is there any way to avoid these continuous crashes on Eclipse and so fix the problem reported here too?
- 3Fixed, I read all the others forum posts about the problem but no one said how to fix it on Eclipse. I found the fix here docs.oseems.com/general/application/eclipse/…Silvio– Silvio2014-04-15 10:21:06 +00:00Commented Apr 15, 2014 at 10:21
- 1A good idea is to post the solution as an answer to your own question and mark it as accepted. That will make it easy for others who might find this through google.Fredrik– Fredrik2014-04-15 10:26:42 +00:00Commented Apr 15, 2014 at 10:26
- Ok but I have to wait for the answer because I have less than 10 reputation. I hope to not forget...Silvio– Silvio2014-04-15 10:52:41 +00:00Commented Apr 15, 2014 at 10:52
- @Fredrik I answered to my question and marked it as an accepted solution after many hours of waiting due to my new subscription. I edited the question too as adviced by stackoverflow and because of it is marked as duplicate. I hope I have fixed it, because, as I previously wrote you in a comment, I already read that post but even if the error is well explained no one say how to fix it in Eclipse, so I thought to open a new question and not answer that one related only to the error. I hope I have not compromised my reputation on StackOverflow now that I have just joined it. Thank you anyway! :)Silvio– Silvio2014-04-17 10:35:28 +00:00Commented Apr 17, 2014 at 10:35
- I've voted to reopen this question because the question that it is supposedly a duplicate of is about how to fix this error when you get it in your own code, but this question is about how to fix it in a program that someone else wrote and you are using (i.e. Eclipse) which is different.samgak– samgak2016-01-19 07:08:56 +00:00Commented Jan 19, 2016 at 7:08
2 Answers
Fixed, I read all the others forum posts about the problem but no one said how to fix it on Eclipse. I found the fix here
EDIT: in case the link becomes dead, here's what you can do. Edit "eclipse.ini", and set something like that:
-XX:MaxPermSize=1024m -Xms512m -Xmx1024m 4 Comments
Remove all errors and warnings from your layouts. Make sure you are running the eclipse in admin mode (windows users) Go to your eclipse folder location -> open eclipse.ini file then make sure to match following.
-Dosgi.requiredJavaVersion=1.6-Xms512m-Xmx1024m this may help you a little bit.
and
Change Target SDK in your manifest to 18 for the time being to avoid the crashes. Issue is with android-19. Wait for another update before switching back.