问题描述
我有一个Android应用程序,只有一个罐子的进口是4 MB的大小(Symja的)从字面上只有code项目创造了一种新的TextView并将其设置为内容视图。但我得到的错误(S):
I have an android application that only has one jar import which is 4 mb in size (Symja https://code.google.com/p/symja/) Literally the only code in the project is creating a new textview and setting it as the content view. But I am getting the error(s):
Conversion to Dalvik format failed: Unable to execute dex: Java heap space
Unable to execute dex: Java heap space
我有另一个机器人项目,这是一个很大较大,近2万行code和它运行在几秒钟。我的eclipse.ini具有以下设置:
I have another android project which is alot bigger, almost 20,000 lines of code and it runs in seconds. My eclipse.ini has the following settings:
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=512m
-Xms512m
-Xmx1024m
我不知道为什么我不能运行这个项目。因此,任何建议都大大AP preciated!
I do not know why I cannot run this project. So any suggestions are greatly appreciated!
感谢。
推荐答案
我看了,那symja库需求的的Java 1.6版本。但是,您的Eclipse使用Java 1.5。也许,这是一个问题。
I read, that symja library needs Java version 1.6. But your Eclipse uses Java 1.5. Maybe, it's a problem.
这篇关于无法因为Java的堆空间在Eclipse中一个微小的Android应用程序来执行DEX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!