Error “java heap size” in Eclipse Android?

后端 未结 3 760
忘了有多久
忘了有多久 2020-12-20 01:31

When I\'m using the graphical layout editor after 5-10 minutes of working I get the error \"java heap size\". I tried to increase size in eclipse.ini: -Xms512m -Xmx1024m But

相关标签:
3条回答
  • 2020-12-20 01:35

    Your eclipse.ini settings will take effect only if you change following:

    Run -> External Tools -> External Tool

    Configurations. go to configuration that u use, under jre tab -select option

    Run in same JRE in workspace.

    For more info on the topic have a look at this link. What are the best JVM settings for Eclipse?

    0 讨论(0)
  • 2020-12-20 01:40

    You can set this on the command line before running eclipse so that eclipse has more mem: How do I set Java's min and max heap size through environment variables?

    0 讨论(0)
  • 2020-12-20 01:55

    If sometimes you get this error and smetimes doesn't then It might happens because RAM is being used by other processes which require large memory. Close all the other Applications/processes and try to start/load the eclipse. It works.

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