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 に答える