【发布时间】:2011-08-24 01:00:18
【问题描述】:
有没有人尝试在 android 开发中使用 lambdaj 库?
当我创建一个简单的小型 java 应用程序时,它对我来说很好,但我无法在 android 应用程序中使用它。
更新:
我正在添加 lambdaj(lambdaj-2.3.2-with-dependencies.jar,从 http://code.google.com/p/lambdaj 下载),然后在构建我的应用程序时出现以下错误:
Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.hamcrest.generator.qdox.directorywalker.DirectoryScanner$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.
[2011-05-12 15:45:30 - MyAppName] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.hamcrest.generator.qdox.JavaDocBuilder$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.
[2011-05-12 15:45:30 - MyAppName] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.hamcrest.generator.qdox.junit.APITestCase$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.
[2011-05-12 15:45:30 - MyAppName] Dx
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type int. This is symptomatic of .class transformation tools that ignore local variable information.
...
skipped stack trace
...
...while working on block 001b
...while working on method yylex:()I
...while processing yylex ()I
...while processing org/hamcrest/generator/qdox/parser/impl/JFlexLexer.class
[2011-05-12 15:45:30 - MyAppName] Dx 1 error; aborting
[2011-05-12 15:45:30 - MyAppName] Conversion to Dalvik format failed with error 1
【问题讨论】:
-
你能详细说明你到目前为止所尝试的吗?
-
你能进一步澄清什么不起作用吗?例如,您是否按照以下步骤操作:developer.android.com/resources/faq/…?您是否收到编译器错误或运行时错误,在这种情况下是什么?
-
因为错误信息太长,更新后的帖子
-
这有什么更新吗?我也有同样的问题。
-
抱歉,没有太多时间做这个,所以去玩旧循环
标签: java android dependencies lambdaj