Does not work with Android?

209 views
Skip to first unread message

Ken

unread,
Aug 30, 2011, 1:52:50 PM8/30/11
to lambdaj
I'm trying to use lambdaj in an android project but when I include it
in the project's build path it throws the following errors during a
build:

[2011-08-30 10:50:03 - TruckTrax GeoTrax] 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-08-30 10:50:03 - TruckTrax GeoTrax] 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-08-30 10:50:03 - TruckTrax GeoTrax] 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.

which results in:
Conversion to Dalvik format failed with error 1

Any ideas how to work around this? I am a noob to android/java/eclipse
so it's quite possible I'm doing something wrong.

Thanks for the help.

Mattias Jiderhamn

unread,
Aug 31, 2011, 8:02:46 AM8/31/11
to lam...@googlegroups.com
The offending classes are not part of LambdaJ code base, but of Hamcrest, so the question should probably directed there; http://code.google.com/p/hamcrest/

That being said, you can worder if org.hamcrest.generator really should be included in the -with-dependencies.jar of LambdaJ.

 </Mattias>
--

 Mattias Jiderhamn, mat...@jiderhamn.se

Reply all
Reply to author
Forward
0 new messages