gpt4 book ai didi

java - Eclipse Luna + ADT - 在 Mac 上运行应用程序时卡住 99%

转载 作者:太空宇宙 更新时间:2023-11-04 14:37:59 26 4
gpt4 key购买 nike

我使用的是 Eclipse Luna + ADT,一切都很好,但是今天,当我尝试在我的 cel 中运行我的项目时,它卡住到 99%,然后显示:

Unable to execute dex: GC overhead limit exceeded

然后:

Unhandled loop expected

我找到的唯一解决方案是返回 ADT Bundle(带 Kepler),但我不喜欢这个解决方案,因为 Eclipse 非常过时......

任何帮助将不胜感激

最佳答案

这个Link对我帮助很大。

正如上面链接中所说,您应该增加 eclipse 使用的内存大小。

只需使用文本编辑器打开 eclipse.ini 文件,该文件与 eclipse.exe 位于同一文件夹中。原始的 eclipse.ini 文件如下所示:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

现在将最后两行更改为:

-Xms512m
-Xmx1024m

您还可以增加 MaxPermSize 的值,如下所示:

-XX:MaxPermSize=1024m

这个解决方案帮助我解决了我的问题。

祝你好运

关于java - Eclipse Luna + ADT - 在 Mac 上运行应用程序时卡住 99%,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25329879/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com