2014-04-10 40 views
-1

我从github下载了ShowcaseView Library并在eclipse上导入了它。我下载了ActionBarSherlock-4.4.0并导入它。编译错误ShowcaseViewSample

我还添加了ShowcaseView图书馆和ActionBarSherlock-4.4.0的样本项目,并没有得到任何这错误,但是当我点击run as android application,很长一段时间后,我得到:

Conversion to Dalvik format failed: Unable to execute dex: Java heap space

和应用程序不运行。

同时我得到这个在控制台:

Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.ibex.nestedvm.util.Sort$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class.

请帮助我。

+0

在提问之前你谷歌吗?这个问题已经被提了很多次,有很多很多有用的链接,文章和答案。在询问每个问题之前,您应该先搜索一下。 https://www.google.ie/search?q=Conversion+to+Dalvik+format+failed:+Unable+to+execute+dex:+Java+heap+space&ie=utf-8&oe=utf-8&rls=org .mozilla:zh-CN:official&client = firefox-a&channel = fflb&gws_rd = cr&ei = zYmQU6-FDJKv7AaukICIAw – Neeku

回答

0

这是与项目中包含的robolectric JAR有关的问题。删除JAR(在库的libs文件夹中),它应该编译成OK。

+1

库需要罐子,当我删除它们时,库中的错误 – Alireza