1

我正在尝试添加以下 jar 文件:tika-app-1.1

这是控制台输出:

[2012-07-06 22:05:03 - iCards] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.log4j.xml.DOMConfigurator$3) 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.
[2012-07-06 22:05:03 - iCards] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.log4j.xml.DOMConfigurator$4) 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.
[2012-07-06 22:05:03 - iCards] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.log4j.xml.DOMConfigurator$5) 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.
[2012-07-06 22:09:03 - Dex Loader] Unable to execute dex: Java heap space
[2012-07-06 22:09:03 - iCards] Conversion to Dalvik format failed: Unable to execute dex: Java heap space

(这是其中很小的一部分,每次都在不同的班级重复......

我能做些什么来解决这个问题?

4

2 回答 2

3
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

看来您的编译器版本不兼容。这意味着 jar 是旧版本。尝试获取该 jar 的最新版本并查看。

于 2012-07-06T19:17:24.000 回答
0

Android dx 命令需要较大的堆栈空间。为“java”命令提供“-Xss256m”选项。如果您使用的是 Eclipse,请打开 eclipse.ini 并添加“-Xss256m”。

于 2012-07-06T19:25:51.287 回答