Eclipse打包出错——提示GC overhead limit exceeded
版权声明:本文为博主原创文章,未经博主允许不得转载。
在Eclipse开发环境中打包发布apk安装包的时候,有时候会出现下面的错误:
原因
在打包的时候,Eclipse占用的内存会增大,当分配给Eclipse的运行内存过小的时候,就会出现打包失败的情况。
解决方案
加大分配给Eclipse的内存。方法是修改Eclipse安装路径/eclipse.ini文件中的-Xms和-Xmx的值。
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316 -product org.eclipse.epp.package.java.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx512m
修改后如下:
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316 -product org.eclipse.epp.package.java.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms512m -Xmx1024m
如果还不行,则可以继续加大内存。
参考资料
eclipse打包出错 GC overhead limite execteeded
Eclipse打包出错——提示GC overhead limit exceeded相关推荐
- Eclipse报错:gc overhead limit exceeded eclipse
Eclipse报错:gc overhead limit exceeded eclipse 原因是Eclipse默认配置内存太小需要更改Eclipse安装文件夹下的eclipse.ini文件. 1.打开 ...
- android 运行或打包出现java.lang.OutOfMemoryError: GC overhead limit exceeded
今天用android studio 打包apk出现java.lang.OutOfMemoryError: GC overhead limit exceeded,查了一下是JDK6新添的错误类型.是发生 ...
- unable to execute dex:GC overhead limit exceeded unable to execute dex:java heap space 解决方案
最近做厂商适配,厂商提供了一部分Framework的jar包,把jar包通过Add Jar放到Build Path中, 在生成APK过程中,Eclipse长时间停留在100%那个进度. 最后Eclip ...
- Unable to execute dex: GC overhead limit exceeded
Android打包时下面的错误: Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded 解决的方法: ...
- 在创建maven项目时出现: GC overhead limit exceeded 问题
2019独角兽企业重金招聘Python工程师标准>>> 在使用Eclipse的Build Project功能时,提示以下错误: An internal error occurred ...
- java gc error_java.lang.OutOfMemoryError GC overhead limit exceeded原因分析及解决方案
最近一个上线运行良好的项目出现用户无法登录或者执行某个操作时,有卡顿现象.查看了日志,出现了大量的java.lang.OutOfMemoryError: GC overhead limit excee ...
- An internal error occurred during: Retrieving archetypes:. GC overhead limit exceeded
An internal error occurred during: "Retrieving archetypes:".GC overhead limit exceeded 异常, ...
- 【java.lang.OutOfMemoryError:GC overhead limit exceeded异常解决方法】
问题描述 由于同时启动了多个项目,导致电脑蓝屏重启,重启后idea启动项目,提示系统资源不足,和Information:java: java.lang.OutOfMemoryError: GC ove ...
- IDEA运行工程时报错:java: java.lang.OutOfMemoryError: GC overhead limit exceeded
背景:在运行公司的工程的时候,提示:"java: java.lang.OutOfMemoryError: GC overhead limit exceeded",从字面意思我们可以 ...
最新文章
- Python 之列表及相关练习题
- 使用Swagger创建Api
- python wand安装_Python Wand posterize()用法及代码示例
- 怎么往integer型数组添加数据_面试中经常问到的Redis七种数据类型,你都真正了解吗?...
- chrome vue.js插件文档_神级宝库!GitHub 标星 1.2w+,Chrome 最天秀的插件都在这里啦!...
- Spring AOP注解为什么失效?90%Java程序员不知道
- VMware NSX 6组件通信图
- python测控_基于RN8302和Python的电能测控系统设计
- java数组原理_Java数组排序原理
- python中如何打印阶梯_字符阶梯(python)
- Atitit.印章文化 印章的起源历史与发展 v2 r99 .docx
- 网上订餐系统的设计与实现(论文+源码)_kaic
- 傅里叶变换1 ~ 离散时间傅里叶变换(DTFT)
- 视频二维码功能应用与教程(完整版)
- 计算机毕业设计之 少儿编程学习平台的设计与实现
- 今天见鬼了,奇怪,Mark一下!
- fast-lio2论文阅读 《FAST-LIO2: Fast Direct LiDAR-inertial Odometry》
- iOS 获取手机步数
- 如何利用区块链技术提高人力资源管理效率?
- python timedelta() 和relativedelta()的区别
热门文章
- C/S简易UI框架开发总结(2)
- bzoj 2535: [Noi2010]Plane 航空管制2【拓扑排序+堆】
- USACO1.1.2|贪婪的送礼者
- 使用ubuntu过程中遇到的问题汇总
- Mysqli面向对象操作数据库
- 使用sharepreferce记录数组数据
- 大型ERP等数据库系统常见几种设计------(转)
- Mifare Ultra Light 非接触式IC卡发卡总结
- C#使用Aspose.Words操作word文档(利用模板2)
- SetTimer和KillTimer详解