简体   繁体   中英

How to increase Java Heap Space for Eclipse ADT Bundle

Ok. So, I am having a constant issue while trying to run my application to either the emulator or export a signed apk for testing. No matter what I do, I constantly get this issue:问题 1

This is what the memory allocation looks like while it is trying to load:问题2 I have followed Every single how to: and advice guide I can, including the following links: 1) How can I increase the JVM memory? 2) Increase JVM max heap size for Eclipse 3) Conversion to Dalvik format failed: Unable to execute dex: Java heap space 4) http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

But no matter what I do, I cannot get it to work and I am pulling my hair out trying to make it work...

Here is a screenshot of my Eclipse.ini file below:问题 3

Also, I have uninstalled and reinstalled the Eclipse ADT thinking that might fix it.

If someone can help me figure out what I am doing wrong, I would greatly appreciate the help as I have spent the past 6 hours trying to fix this so I can continue debugging even more issues :/

-Silmarilos

我想您可能已经更改了 eclipse.exe 文件名。只需更改回来

try changing

-Xms4096m
-Xmx4096m

to

-Xmx1024m    //Half of your RAM
-Xms100m     // ~ Half of your RAM/10

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM