Closed GoogleCodeExporter closed 9 years ago
Similar issue here I think. In Robotium sample, NotePadTest, as soon as I add
hamcrest-all-1.2.jar to the library references in Eclipse Project, I get
multiple Dalvik errors, starting from:
#############
[2011-07-09 20:06:13 - NotePadTest] 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.
#############
and then on to:
#############
[2011-07-09 20:06:13 - NotePadTest] 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.
#############
down to:
#############
...while processing yylex ()I
...while processing org/hamcrest/generator/qdox/parser/impl/JFlexLexer.class
#############
Full console log attached.
Original comment by piscopo....@gmail.com
on 9 Jul 2011 at 6:09
Attachments:
Original comment by t.denley
on 12 May 2012 at 10:38
Firstly, you probably don't need the hamcrest-all.jar. Try using just
hamcrest-core and hamcrest-library.
The underlying cause looks to be a class in the packaged QDox codebase. Before
digging too much deeper, it is probably worth me updating hamcrest to use the
latest version of QDox. If I try this, is anyone able to re-try on android, as
I don't have an appropriate dev environment available at the moment.
Original comment by t.denley
on 12 May 2012 at 11:11
As there don't appear to be any android developers around to test this, or
gather more data, I'm closing for now.
Original comment by t.denley
on 28 Jul 2012 at 10:13
Original issue reported on code.google.com by
dalewk...@gmail.com
on 12 Apr 2011 at 2:27