The*_*ash 5 eclipse android dalvik dex
我在最近3个小时内遇到了这个错误.当我从SVN检查出最新的代码之后,它突然停止工作了.
注意:
我的新项目大小约为135 MB,我使用的是eclipse kepler.
myApp/res/libs中还有3个jars,名为sqlite.jar,ksoap2.jar,rt.jar
所以我用Google搜索并找到了这个答案.还有Blog 1和Blog 2我编辑了eclipse.ini
从:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.standard.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
Run Code Online (Sandbox Code Playgroud)
至
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m
Run Code Online (Sandbox Code Playgroud)
但它仍然没有工作,并在日食中得到相同的错误.任何帮助,将不胜感激.
解决方法是从项目中删除rt.jar(有18635个类文件)文件.这是一个沉重的罐子.在JRE或J2EE/J2ME中,默认使用该jar文件.在Android中我不会,所以我们必须手动添加.
| 归档时间: |
|
| 查看次数: |
7095 次 |
| 最近记录: |