Eclipse crashes with a GC overhead limit exceeded error

后端 未结 2 893
囚心锁ツ
囚心锁ツ 2020-12-04 19:59

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

相关标签:
2条回答
  • 2020-12-04 20:29

    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
    
    0 讨论(0)
  • 2020-12-04 20:31

    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.

    0 讨论(0)
提交回复
热议问题