Closed GoogleCodeExporter closed 9 years ago
It looks like the dex file has too many methods. I'm assuming the smali files
are generated while deodexing the framework, and are otherwise unmodified. Is
that the case?
Assuming so, then this is likely due to the fact that while deodexing, it can
resolve an odexed method using any of several different equivalent overrides of
the method.
e.g. it could use either Lcom/blah/Class;->toString()Ljava/lang/String; or
Ljava/lang/Object;->toString()Ljava/lang/String; to refer to the toString
method on the com.blah.Class class.
And in some cases, this might inflate the method count slightly, if it uses a
different override than was present in the original dex file. And if the
original dex file was close to the limit, this might be enough to push it over
the limit.
Unfortunately, there's no easy way to fix this in smali/baksmali. I think your
best bet would be to move some of the classes to something like the
framework2.jar, to reduce the method count.
Original comment by jesusfreke@jesusfreke.com
on 24 Apr 2014 at 6:54
Original issue reported on code.google.com by
kirill.d...@gmail.com
on 24 Apr 2014 at 1:25