eclipse with Android sdk, ERROR: Java heap space

前端 未结 1 1275
借酒劲吻你
借酒劲吻你 2020-11-30 13:29

So lately I\'m having a problem while working in my apps inside eclipse the next message shows up while working with xml files:

ERROR: \'Java heap space\'


        
相关标签:
1条回答
  • 2020-11-30 13:59

    Try this

    In Run->Run Configuration find the Name of the class you have been running, select it, click the Arguments tab then add:

      -Xms512M -Xmx1524M
    

    to the VM Arguments section

    Few useful links

    What are the best JVM settings for Eclipse?

    Error "java heap size" in Eclipse Android?

    Edit:

    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.

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